Routing node cleanup

This commit is contained in:
Arcaratus 2016-02-27 11:38:40 -05:00
parent 83c1497609
commit e89451ed36
4 changed files with 20 additions and 24 deletions

View file

@ -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();

View file

@ -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();