diff --git a/src/main/java/tconstruct/items/tools/Shortbow.java b/src/main/java/tconstruct/items/tools/Shortbow.java index 9acb9f6e..0ad39270 100644 --- a/src/main/java/tconstruct/items/tools/Shortbow.java +++ b/src/main/java/tconstruct/items/tools/Shortbow.java @@ -11,6 +11,7 @@ import net.minecraft.util.StatCollector; import net.minecraft.world.World; import tconstruct.library.TConstructRegistry; import tconstruct.library.tools.BowstringMaterial; +import tconstruct.library.tools.CustomMaterial; import tconstruct.tools.TinkerTools; public class Shortbow extends BowBase @@ -43,8 +44,11 @@ public class Shortbow extends BowBase @Override protected int getDefaultColor(int renderPass, int materialID) { // bowstring uses custom material - if(renderPass == 0) - return TConstructRegistry.getCustomMaterial(materialID, BowstringMaterial.class).color; + if(renderPass == 0) { + CustomMaterial mat = TConstructRegistry.getCustomMaterial(materialID, BowstringMaterial.class); + if(mat != null) + return mat.color; + } return super.getDefaultColor(renderPass, materialID); }