Skip to content

Commit

Permalink
Fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
unascribed committed Mar 5, 2017
1 parent 19255c0 commit f1805fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void doRenderLayer(EntityPlayer player, float limbSwing,
FruitEquipmentProperties props = (FruitEquipmentProperties)player.getExtendedProperties("fruitphone:equipment");
if (props == null) return;
ItemStack itemstack = props.glasses;
if (itemstack.getItem() instanceof ItemFruitPassive) {
if (itemstack != null && itemstack.getItem() instanceof ItemFruitPassive) {
ItemFruitPassive item = ((ItemFruitPassive)itemstack.getItem());
GL11.glPushMatrix();; {
GL11.glTranslatef(0f, 0.01f, 0f);
Expand Down

0 comments on commit f1805fb

Please sign in to comment.