Remove redundant casts, unnecessary object creation, and string ==

This commit is contained in:
mezz committed 2016-10-21 00:32:06 -07:00
1 parent 100784b51b
commit a4cd13282a
57 files changed
+180 -156

No files matched your search

@@ -36,7 +36,7 @@ public class CustomSlot extends Slot {
ItemStack stack = player.inventory.getItemStack();
//TODO modifier==mouseButton2?
if (stack == null || modifier == ClickType.PICKUP_ALL) {
this.putStack((ItemStack) null);
this.putStack(null);
} else {
stack = stack.copy();
stack.stackSize = 1;