Skip to content

Commit

Permalink
fix weird slot handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts authored and Dream-Master committed Mar 29, 2024
1 parent e713def commit e02c66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/mrtjp/core/gui/NodeContainer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class Slot3(inv: IInventory, i: Int, x: Int, y: Int)

trait TSlot3 extends Slot {
var slotChangeDelegate = { () => }
var canRemoveDelegate = { () => true }
var canRemoveDelegate = { () => !phantomSlot }
var canPlaceDelegate = { (stack: ItemStack) =>
inventory.isItemValidForSlot(getSlotIndex, stack)
}
Expand Down

0 comments on commit e02c66d

Please sign in to comment.