commit
6b52b5131b
4 changed files with 20 additions and 24 deletions
|
@ -65,7 +65,7 @@ public class ContainerItemRoutingNode extends Container
|
|||
{
|
||||
if (slotId >= 0)
|
||||
{
|
||||
Slot slot = (Slot) this.inventorySlots.get(slotId);
|
||||
Slot slot = this.inventorySlots.get(slotId);
|
||||
|
||||
if (slot instanceof SlotGhostItem) //TODO: make the slot clicking work!
|
||||
{
|
||||
|
@ -152,7 +152,7 @@ public class ContainerItemRoutingNode extends Container
|
|||
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
|
||||
{
|
||||
ItemStack itemstack = null;
|
||||
Slot slot = (Slot) this.inventorySlots.get(index);
|
||||
Slot slot = this.inventorySlots.get(index);
|
||||
|
||||
if (slot != null && slot.getHasStack())
|
||||
{
|
||||
|
@ -184,7 +184,7 @@ public class ContainerItemRoutingNode extends Container
|
|||
|
||||
if (itemstack1.stackSize == 0)
|
||||
{
|
||||
slot.putStack((ItemStack) null);
|
||||
slot.putStack(null);
|
||||
} else
|
||||
{
|
||||
slot.onSlotChanged();
|
||||
|
|
|
@ -42,7 +42,7 @@ public class ContainerSoulForge extends Container
|
|||
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
|
||||
{
|
||||
ItemStack itemstack = null;
|
||||
Slot slot = (Slot) this.inventorySlots.get(index);
|
||||
Slot slot = this.inventorySlots.get(index);
|
||||
|
||||
if (slot != null && slot.getHasStack())
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ public class ContainerSoulForge extends Container
|
|||
|
||||
if (itemstack1.stackSize == 0)
|
||||
{
|
||||
slot.putStack((ItemStack) null);
|
||||
slot.putStack(null);
|
||||
} else
|
||||
{
|
||||
slot.onSlotChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue