Possible fix for crossbow rendering crashing on server login. This might happen because of the crossbow rendering before the necessary NBT is loaded.... if that's even possible #1254

This commit is contained in:
Bernhard Bonigl committed 2014-12-26 11:13:20 +01:00
1 parent 384fe28be9
commit 0f1a4582af
1 file changed
+1 -1
@@ -41,7 +41,7 @@ public class CrossbowRenderer extends FlexibleToolRenderer {
GL11.glRotatef(50f, 1f, 0f, 0f);
}
if(ammo != null) {
if(ammo != null && ammo.hasTagCompound()) {
//float progress = crossbow.getWindupProgress(item, player);
float progress = 1f;
dummy.returnStack = ammo;