mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 02:39:48 -04:00
Merge branch 'master-MC1.11' into master-MC1.12
This commit is contained in:
commit
ba725c03b5
@ -493,7 +493,7 @@ class Player(val agent: internal.Agent) extends FakePlayer(agent.world.asInstanc
|
||||
private def callUsingItemInSlot[T](inventory: IInventory, slot: Int, f: (ItemStack) => T, repair: Boolean = true) = {
|
||||
val itemsBefore = adjacentItems
|
||||
val stack = inventory.getStackInSlot(slot)
|
||||
val oldStack = if (!stack.isEmpty) stack.copy() else null
|
||||
val oldStack = stack.copy()
|
||||
this.inventory.currentItem = if (inventory == agent.mainInventory) slot else ~slot
|
||||
this.offHand = (inventory, slot)
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user