SkytilsMod
SkytilsMod copied to clipboard
Fixed item stack copy
Fixed calling ItemStack.copy()
too often unnecessary.
In MiningFeatures.onDrawSlot
we are calling val item = event.slot.stack
, even outside the HOTM inventories. This causes the injected MixinSlot
to call markTerminalItems
. In here, we create a copy of the item stack before checking if the slot number is part of SelectAllColorSolver
or StartsWithSequenceSolver
.