diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/matter/MatterEntanglerMenu.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/matter/MatterEntanglerMenu.kt index 561f3b872..3a3249333 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/matter/MatterEntanglerMenu.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/matter/MatterEntanglerMenu.kt @@ -75,7 +75,8 @@ class MatterEntanglerMenu( private fun rescan() { if (player is ServerPlayer && entangling[0].item is IQuantumLinked && entangling[1].item == entangling[0].item && entangling[0].isNotEmpty && entangling[1].isNotEmpty) { - entanglingC.container[0] = (entangling[0].item as IQuantumLinked).merge(entangling[0], entangling[1]) + val result = (entangling[0].item as IQuantumLinked).merge(entangling[0], entangling[1]) + entanglingC.container[0] = result } else if (player is ServerPlayer) { entanglingC.container[0] = ItemStack.EMPTY } @@ -89,7 +90,7 @@ class MatterEntanglerMenu( val entanglingA: MatterySlot = EntanglingInputSlot(0) val entanglingB: MatterySlot = EntanglingInputSlot(1) - val entanglingC: MatterySlot = object : MatterySlot(SimpleContainer(1), 0) { + val entanglingC: MatterySlot = object : MatterySlot(MatteryContainer(1), 0) { override fun mayPlace(itemStack: ItemStack): Boolean { return false }