mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-13 00:47:31 +00:00
Oops
This commit is contained in:
1 parent
075f9637d9
commit
ef6eb97bb5
1 file changed
+8
-2
@@ -18,10 +18,16 @@ public class SlotUpgrade extends Slot
|
||||
ItemStack stack = getStack();
|
||||
if (stack != null && stack.getItem() == ModItems.upgrade)
|
||||
return ((InventoryUpgrade) inventory).canRemoveStorageUpgrade(stack.getItemDamage());
|
||||
if (stack != null && stack.getItem() == ModItems.upgradeCreative && !player.capabilities.isCreativeMode)
|
||||
return false;
|
||||
if (player != null) {
|
||||
if (stack != null && stack.getItem() == ModItems.upgradeCreative && !player.capabilities.isCreativeMode)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canTakeStack () {
|
||||
return canTakeStack(null);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user