Images are now packed when running from the .jar as well, so non-coding modders should never need to run from source code =)
This commit is contained in:
parent
1008e9c4f6
commit
f97c230be8
1 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,6 @@ internal object DesktopLauncher {
|
|||
@JvmStatic
|
||||
fun main(arg: Array<String>) {
|
||||
|
||||
if (File("../Images").exists()) // So we don't run this from within a fat JAR
|
||||
packImages()
|
||||
|
||||
val config = LwjglApplicationConfiguration()
|
||||
|
@ -51,10 +50,12 @@ internal object DesktopLauncher {
|
|||
// This is so they don't look all pixelated
|
||||
settings.filterMag = Texture.TextureFilter.MipMapLinearLinear
|
||||
settings.filterMin = Texture.TextureFilter.MipMapLinearLinear
|
||||
|
||||
if (File("../Images").exists()) // So we don't run this from within a fat JAR
|
||||
TexturePacker.process(settings, "../Images", ".", "game")
|
||||
|
||||
// pack for mods as well
|
||||
val modDirectory = File("../assets/mods")
|
||||
val modDirectory = File("mods")
|
||||
if(modDirectory.exists()) {
|
||||
for (mod in modDirectory.listFiles()!!){
|
||||
TexturePacker.process(settings, mod.path + "/Images", mod.path, "game")
|
||||
|
|
Loading…
Reference in a new issue