mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
quick fix : Wrapper type may be primitive
This commit is contained in:
1 parent
8e1425203e
commit
f677a4c5b7
5 files changed
+5
-5
No files matched your search
@@ -593,7 +593,7 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IEq
|
||||
if (tags.hasKey(key + "Color")) return tags.getInteger(key + "Color");
|
||||
|
||||
// custom texture?
|
||||
Integer matId = tags.getInteger("Render" + key);
|
||||
int matId = tags.getInteger("Render" + key);
|
||||
if (map.containsKey(matId)) return super.getColorFromItemStack(stack, renderPass);
|
||||
|
||||
// color default texture with material color
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SlotTool extends Slot {
|
||||
if (stack.getItem() instanceof IModifyable) {
|
||||
NBTTagCompound tags =
|
||||
stack.getTagCompound().getCompoundTag(((IModifyable) stack.getItem()).getBaseTagName());
|
||||
Boolean full = (inventory.getStackInSlot(2) != null || inventory.getStackInSlot(3) != null);
|
||||
boolean full = (inventory.getStackInSlot(2) != null || inventory.getStackInSlot(3) != null);
|
||||
for (int i = 2; i <= 3; i++) inventory.decrStackSize(i, 1);
|
||||
ItemStack compare = inventory.getStackInSlot(1);
|
||||
int amount = compare.getItem() instanceof IModifyable ? compare.stackSize : 1;
|
||||
|
||||
@@ -22,7 +22,7 @@ public class SlotToolForge extends SlotTool {
|
||||
if (stack.getItem() instanceof IModifyable) {
|
||||
NBTTagCompound tags =
|
||||
stack.getTagCompound().getCompoundTag(((IModifyable) stack.getItem()).getBaseTagName());
|
||||
Boolean full = (inventory.getStackInSlot(2) != null
|
||||
boolean full = (inventory.getStackInSlot(2) != null
|
||||
|| inventory.getStackInSlot(3) != null
|
||||
|| inventory.getStackInSlot(4) != null);
|
||||
for (int i = 2; i <= 4; i++) inventory.decrStackSize(i, 1);
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ToolForgeContainer extends ToolStationContainer {
|
||||
if (stack.getItem() instanceof IModifyable) {
|
||||
NBTTagCompound tags =
|
||||
stack.getTagCompound().getCompoundTag(((IModifyable) stack.getItem()).getBaseTagName());
|
||||
Boolean full = (logic.getStackInSlot(2) != null
|
||||
boolean full = (logic.getStackInSlot(2) != null
|
||||
|| logic.getStackInSlot(3) != null
|
||||
|| logic.getStackInSlot(4) != null);
|
||||
for (int i = 2; i <= 4; i++) logic.decrStackSize(i, 1);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user