Disallow managed/unmanaged mode opening GUI for loot disks.

This commit is contained in:
Florian Nücke 2015-08-02 21:26:13 +02:00
parent 6466bbbf8b
commit bc478cde58

View File

@ -37,7 +37,7 @@ trait FileSystemLike extends Delegate {
}
override def onItemRightClick(stack: ItemStack, world: World, player: EntityPlayer): ItemStack = {
if (!player.isSneaking) {
if (!player.isSneaking && (!stack.hasTagCompound || !stack.getTagCompound.hasKey(Settings.namespace + "lootFactory"))) {
player.openGui(OpenComputers, GuiType.Drive.id, world, 0, 0, 0)
player.swingItem()
}