quick fix : Wrapper type may be primitive

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 8e1425203e
commit f677a4c5b7
5 files changed
+5 -5

No files matched your search

@@ -117,7 +117,7 @@ public class ToolStationContainer extends ActiveContainer {
if (stack.getItem() instanceof IModifyable) {
NBTTagCompound tags =
stack.getTagCompound().getCompoundTag(((IModifyable) stack.getItem()).getBaseTagName());
Boolean full = (logic.getStackInSlot(2) != null || logic.getStackInSlot(3) != null);
boolean full = (logic.getStackInSlot(2) != null || logic.getStackInSlot(3) != null);
for (int i = 2; i <= 3; i++) logic.decrStackSize(i, 1);
ItemStack compare = logic.getStackInSlot(1);
int amount = compare.getItem() instanceof IModifyable ? compare.stackSize : 1;