diff --git a/chunky/src/java/se/llbit/chunky/resources/Texture.java b/chunky/src/java/se/llbit/chunky/resources/Texture.java index 35935029f..72809051b 100644 --- a/chunky/src/java/se/llbit/chunky/resources/Texture.java +++ b/chunky/src/java/se/llbit/chunky/resources/Texture.java @@ -1463,7 +1463,7 @@ public class Texture { public static final Texture vaultFrontEjecting = new Texture(); @TexturePath("assets/minecraft/textures/block/vault_side_off") public static final Texture vaultSideOff = new Texture(); - @TexturePath("assets/minecraft/textures/block/vault_front_ejecting") + @TexturePath("assets/minecraft/textures/block/vault_side_on") public static final Texture vaultSideOn = new Texture(); @TexturePath("assets/minecraft/textures/entity/decorated_pot/flow_pottery_pattern") public static final Texture decoratedPotPatternFlow = new Texture(); diff --git a/chunky/src/java/se/llbit/chunky/resources/TexturePackLoader.java b/chunky/src/java/se/llbit/chunky/resources/TexturePackLoader.java index f772e33ca..5d9001149 100644 --- a/chunky/src/java/se/llbit/chunky/resources/TexturePackLoader.java +++ b/chunky/src/java/se/llbit/chunky/resources/TexturePackLoader.java @@ -19,6 +19,7 @@ import se.llbit.chunky.renderer.scene.PlayerModel; import se.llbit.chunky.renderer.scene.sky.Sun; import se.llbit.chunky.resources.texturepack.*; +import se.llbit.log.Log; import java.lang.reflect.Field; import java.util.*; @@ -3663,6 +3664,10 @@ private static void addSimpleTexture(String file, Texture texture) { } private static void addSimpleTexture(String name, String file, Texture texture) { + if (ALL_TEXTURES.containsKey(name)) { + Log.warnf("Duplicate texture %s (path %s). This is probably a bug, please report it at https://github.com/chunky-dev/chunky/issues", name, file); + addSimpleTexture(name + "_duplicate", file, texture); + } ALL_TEXTURES.put(name, new SimpleTexture(file, texture)); } }