Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

1.18.2 fixes #375

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public float getPriority(AltoClef mod) {
if (_lastHandStack != null && _stackHeldTimeout.elapsed()) {
Debug.logMessage("Cursor stack is held for too long, will move back to inventory.");
Optional<Slot> moveTo = mod.getItemStorage().getSlotThatCanFitInPlayerInventory(_lastHandStack, false).or(() -> StorageHelper.getGarbageSlot(mod));
if (moveTo.isPresent()) {
if (moveTo.isPresent() && !Slot.isCursor(moveTo.get())) {
mod.getSlotHandler().clickSlot(moveTo.get(), 0, SlotActionType.PICKUP);
} else {
// Try throwing away cursor slot if it's garbage
Expand Down
Loading