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
public int getMaxStackSizePerSlot(int slot, ItemStack stack){
public int getMaxStackSizePerSlot(int slot){
return 1;
}

View file

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

View file

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