mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
All this needs to be tested, but here :P
This commit is contained in:
1 parent
0f9cca02f1
commit
e0a254fd3f
28 files changed
+149
-100
No files matched your search
@@ -24,4 +24,4 @@ public class ActiveContainer extends Container
|
||||
return slot;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -126,7 +126,7 @@ public class InventoryCraftingStation extends InventoryCrafting
|
||||
/**
|
||||
* Called when an the contents of an Inventory change, usually
|
||||
*/
|
||||
public void onInventoryChanged ()
|
||||
public void markDirty ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class InventoryCraftingStationResult extends InventoryCraftResult
|
||||
/**
|
||||
* Called when an the contents of an Inventory change, usually
|
||||
*/
|
||||
public void onInventoryChanged ()
|
||||
public void markDirty ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package tconstruct.inventory;
|
||||
|
||||
import tconstruct.blocks.logic.SmelteryLogic;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import tconstruct.blocks.logic.SmelteryLogic;
|
||||
|
||||
public class SmelteryContainer extends ActiveContainer
|
||||
{
|
||||
@@ -224,7 +224,7 @@ public class SmelteryContainer extends ActiveContainer
|
||||
slot = (Slot) this.inventorySlots.get(slotPos);
|
||||
slotStack = slot.getStack();
|
||||
|
||||
if (slotStack != null && slotStack == inputStack && (!inputStack.getHasSubtypes() || inputStack.getItemDamage() == slotStack.getItemDamage())
|
||||
if (slotStack != null && slotStack.getItem() == inputStack.getItem() && (!inputStack.getHasSubtypes() || inputStack.getItemDamage() == slotStack.getItemDamage())
|
||||
&& ItemStack.areItemStackTagsEqual(inputStack, slotStack))
|
||||
{
|
||||
int l = slotStack.stackSize + inputStack.stackSize;
|
||||
@@ -294,4 +294,4 @@ public class SmelteryContainer extends ActiveContainer
|
||||
|
||||
return merged;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user