mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Ton of null fixes
This commit is contained in:
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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user