diff --git a/src/main/java/buildcraft/additionalpipes/gates/APTrigger.java b/src/main/java/buildcraft/additionalpipes/gates/APTrigger.java index 8d0efaf..0c95557 100644 --- a/src/main/java/buildcraft/additionalpipes/gates/APTrigger.java +++ b/src/main/java/buildcraft/additionalpipes/gates/APTrigger.java @@ -9,7 +9,6 @@ import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import buildcraft.additionalpipes.AdditionalPipes; -import buildcraft.additionalpipes.utils.Log; import buildcraft.api.statements.IStatement; import buildcraft.api.statements.StatementManager; @@ -32,9 +31,10 @@ public APTrigger(String idWithoutPrefix) this.id = "additionalpipes:" + descriptionKey; StatementManager.statements.put(this.id, this); - texture = new ResourceLocation(AdditionalPipes.MODID, "textures/items/triggers/" + idWithoutPrefix); + texture = new ResourceLocation(AdditionalPipes.MODID, "items/triggers/" + idWithoutPrefix); - MinecraftForge.EVENT_BUS.register(this); + MinecraftForge.EVENT_BUS.register(this); + } @SubscribeEvent @@ -42,7 +42,11 @@ public APTrigger(String idWithoutPrefix) public void stitchTextures(TextureStitchEvent.Pre event) { sprite = event.map.getTextureExtry(texture.toString()); - Log.debug("resource location: " + texture.toString()); + if (sprite == null) + { + sprite = event.map.registerSprite(texture); + } + } @Override