Fix more ItemStack issues

This commit is contained in:
aidancbrady committed 2017-04-03 20:12:02 -04:00
1 parent cf6a04a65d
commit 6eb8e59f3c
68 files changed
+207 -211

No files matched your search

@@ -38,7 +38,7 @@ public class PacketScubaTankData implements IMessageHandler<ScubaTankDataMessage
{
ItemStack stack = player.getItemStackFromSlot(EntityEquipmentSlot.CHEST);
if(stack != null && stack.getItem() instanceof ItemScubaTank)
if(!stack.isEmpty() && stack.getItem() instanceof ItemScubaTank)
{
((ItemScubaTank)stack.getItem()).toggleFlowing(stack);
}