From 61770cd6bf681efee78d7ed976672e5e38f9e810 Mon Sep 17 00:00:00 2001 From: viciscat <51047087+viciscat@users.noreply.github.com> Date: Sat, 25 May 2024 14:24:37 +0200 Subject: stop the slot invasion --- .../de/hysky/skyblocker/skyblock/item/SkyblockInventoryScreen.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockInventoryScreen.java b/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockInventoryScreen.java index 8717dd15..8f1abbb8 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockInventoryScreen.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/item/SkyblockInventoryScreen.java @@ -88,9 +88,10 @@ public class SkyblockInventoryScreen extends InventoryScreen { @Override public void removed() { super.removed(); - // move it back, the handler is the same for the entire session + // put the handler back how it was, the handler is the same while the player is alive/in the same world Slot slot = handler.slots.get(45); ((SlotAccessor) slot).setX(slot.x - 21); + handler.slots.removeIf(slot1 -> slot1 instanceof EquipmentSlot); } @Override -- cgit