mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 19:39:37 +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
@@ -75,7 +75,7 @@ public class ContainerCraftGUI extends Container {
|
||||
if (par1 < 0 || par1 >= this.inventorySlots.size()) {
|
||||
return null;
|
||||
}
|
||||
return (Slot) this.inventorySlots.get(par1);
|
||||
return this.inventorySlots.get(par1);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -150,7 +150,7 @@ public class ContainerCraftGUI extends Container {
|
||||
return null;
|
||||
}
|
||||
final ItemStack itemstack = request.transfer(true);
|
||||
final Slot shiftClickedSlot = (Slot) this.inventorySlots.get(slotnumber);
|
||||
final Slot shiftClickedSlot = this.inventorySlots.get(slotnumber);
|
||||
shiftClickedSlot.putStack(itemstack);
|
||||
shiftClickedSlot.onSlotChanged();
|
||||
return null;
|
||||
@@ -270,7 +270,7 @@ public class ContainerCraftGUI extends Container {
|
||||
//TODO INVENTORY
|
||||
this.crafters.stream().filter(Objects::nonNull).forEach(entityPlayer -> {
|
||||
System.out.println("send to:" + entityPlayer.getDisplayName().getUnformattedText());
|
||||
BinnieCore.proxy.sendToPlayer(new MessageContainerUpdate(nbt.getValue()), (EntityPlayerMP) entityPlayer);
|
||||
BinnieCore.proxy.sendToPlayer(new MessageContainerUpdate(nbt.getValue()), entityPlayer);
|
||||
});
|
||||
sentThisTime.put(nbt.getKey(), nbt.getValue());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user