Fix slot config, some changes to the way Inventory works as well to allow for this.

This commit is contained in:
modmuss50 2018-09-13 19:33:14 +01:00
parent 305f74b107
commit 01644e4f65
35 changed files with 114 additions and 108 deletions

View file

@ -55,7 +55,7 @@ public class UpgradeSlot extends BaseSlot implements IRightClickHandler {
public boolean handleRightClick(int slotID, EntityPlayer player, BuiltContainer container) {
if (inventory instanceof Inventory) {
Inventory inv = (Inventory) inventory;
TileEntity tileEntity = inv.getTileBase();
TileEntity tileEntity = inv.getTile();
if (tileEntity instanceof IUpgradeable) {
IUpgradeable upgradeable = (IUpgradeable) tileEntity;
if (upgradeable.canBeUpgraded()) {