mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
Remove redundant casts, unnecessary object creation, and string ==
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user