mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-10 15:56:41 -04:00
Disallow managed/unmanaged mode opening GUI for loot disks.
This commit is contained in:
parent
6466bbbf8b
commit
bc478cde58
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user