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.
Fixed calling
ItemStack.copy()
too often unnecessary.In
MiningFeatures.onDrawSlot
we are callingval item = event.slot.stack
, even outside the HOTM inventories. This causes the injectedMixinSlot
to callmarkTerminalItems
. In here, we create a copy of the item stack before checking if the slot number is part ofSelectAllColorSolver
orStartsWithSequenceSolver
.