Fix some null warnings

This commit is contained in:
mezz committed 2016-10-20 23:51:14 -07:00
1 parent c6783e573c
commit 3178aa890d
22 files changed
+114 -95

No files matched your search

@@ -68,8 +68,9 @@ public class AlvearyFrame {
}
public IHiveFrame getHiveFrame() {
if (this.getInventory().getStackInSlot(AlvearyFrame.slotFrame) != null) {
return (IHiveFrame) this.getInventory().getStackInSlot(AlvearyFrame.slotFrame).getItem();
ItemStack stackInSlot = this.getInventory().getStackInSlot(AlvearyFrame.slotFrame);
if (stackInSlot != null) {
return (IHiveFrame) stackInSlot.getItem();
}
return null;
}