mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
1.0.3
This commit is contained in:
1 parent
7e7972f83e
commit
0ddf7ae8b5
22 files changed
+524
-91
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package tinker.tconstruct.client.gui;
|
||||
|
||||
import tinker.common.IPattern;
|
||||
import tinker.tconstruct.logic.PatternChestLogic;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
@@ -51,9 +52,10 @@ public class PatternChestContainer extends Container
|
||||
return logic.isUseableByPlayer(entityplayer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack transferStackInSlot(EntityPlayer player, int slotID)
|
||||
{
|
||||
ItemStack stack = null;
|
||||
ItemStack stack = null;
|
||||
Slot slot = (Slot)this.inventorySlots.get(slotID);
|
||||
|
||||
if (slot != null && slot.getHasStack())
|
||||
@@ -85,4 +87,13 @@ public class PatternChestContainer extends Container
|
||||
|
||||
return stack;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean mergeItemStack(ItemStack stack, int inventorySize, int slotSize, boolean par4)
|
||||
{
|
||||
if (!(stack.getItem() instanceof IPattern))
|
||||
return false;
|
||||
|
||||
return super.mergeItemStack(stack, inventorySize, slotSize, par4);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user