Change this to also respect new method

This commit is contained in:
Ellpeck 2016-12-05 17:18:00 +01:00
parent 9b7177fbe9
commit 3b7cf5d7c9
3 changed files with 6 additions and 6 deletions

View file

@ -109,7 +109,7 @@ public class TileEntityDisplayStand extends TileEntityInventoryBase implements I
} }
@Override @Override
public int getMaxStackSizePerSlot(int slot, ItemStack stack){ public int getMaxStackSizePerSlot(int slot){
return 1; return 1;
} }

View file

@ -159,7 +159,7 @@ public class TileEntityEmpowerer extends TileEntityInventoryBase{
} }
@Override @Override
public int getMaxStackSizePerSlot(int slot, ItemStack stack){ public int getMaxStackSizePerSlot(int slot){
return 1; return 1;
} }
} }

View file

@ -41,8 +41,8 @@ public abstract class TileEntityInventoryBase extends TileEntityBase{
} }
@Override @Override
protected int getStackLimit(int slot, ItemStack stack){ public int getSlotLimit(int slot){
return TileEntityInventoryBase.this.getMaxStackSizePerSlot(slot, stack); return TileEntityInventoryBase.this.getMaxStackSizePerSlot(slot);
} }
@Override @Override
@ -99,8 +99,8 @@ public abstract class TileEntityInventoryBase extends TileEntityBase{
return true; return true;
} }
public int getMaxStackSizePerSlot(int slot, ItemStack stack){ public int getMaxStackSizePerSlot(int slot){
return stack.getMaxStackSize(); return 64;
} }
public boolean shouldSyncSlots(){ public boolean shouldSyncSlots(){