Ton of null fixes

This commit is contained in:
Vincent Lee committed 2017-01-05 03:44:13 -06:00
1 parent a87dd1d46b
commit 24779ded1c
132 files changed
+403 -325

No files matched your search

@@ -41,9 +41,9 @@ public class PacketDodge implements IMessage {
IInventory baublesInv = BaublesApi.getBaubles(player);
ItemStack ringStack = baublesInv.getStackInSlot(1);
if(ringStack == null || !(ringStack.getItem() instanceof ItemDodgeRing)) {
if(ringStack.isEmpty() || !(ringStack.getItem() instanceof ItemDodgeRing)) {
ringStack = baublesInv.getStackInSlot(2);
if(ringStack == null || !(ringStack.getItem() instanceof ItemDodgeRing))
if(ringStack.isEmpty() || !(ringStack.getItem() instanceof ItemDodgeRing))
ctx.getServerHandler().disconnect("Invalid Dodge Packet");
}