SkytilsMod icon indicating copy to clipboard operation
SkytilsMod copied to clipboard

Fixed item stack copy

Open hannibal002 opened this issue 1 month ago • 0 comments

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.

hannibal002 avatar May 19 '24 20:05 hannibal002