mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -04:00
Merge branch 'master-MC1.11' into master-MC1.12
This commit is contained in:
commit
ac67d8ba37
@ -87,7 +87,7 @@ abstract class GuiHandler extends IGuiHandler {
|
||||
case Some(tablet: item.Tablet) if id == GuiType.Tablet.id => mainItem
|
||||
case Some(tablet: item.Tablet) if id == GuiType.TabletInner.id => mainItem
|
||||
case Some(terminal: item.Terminal) if id == GuiType.Terminal.id => mainItem
|
||||
case _ => player.inventory.offHandInventory(0)
|
||||
case _ => player.inventory.offHandInventory.get(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ class DiskDrive extends SimpleBlock with traits.GUI {
|
||||
if (hand == EnumHand.MAIN_HAND)
|
||||
player.inventory.decrStackSize(player.inventory.currentItem, 1)
|
||||
else
|
||||
player.inventory.offHandInventory(0).stackSize -= 1
|
||||
player.inventory.offHandInventory.get(0).shrink(1)
|
||||
}
|
||||
isDiskInDrive || isHoldingDisk
|
||||
case _ => false
|
||||
|
Loading…
x
Reference in New Issue
Block a user