Fix slot config, some changes to the way Inventory works as well to allow for this.
This commit is contained in:
parent
305f74b107
commit
01644e4f65
35 changed files with 114 additions and 108 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue