diff --git a/CPlanker/src/io/reisub/dreambot/cplanker/tasks/GoToSawmill.java b/CPlanker/src/io/reisub/dreambot/cplanker/tasks/GoToSawmill.java index 7a890da..9c6f09a 100644 --- a/CPlanker/src/io/reisub/dreambot/cplanker/tasks/GoToSawmill.java +++ b/CPlanker/src/io/reisub/dreambot/cplanker/tasks/GoToSawmill.java @@ -5,6 +5,7 @@ import io.reisub.dreambot.util.Util; import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.MethodProvider; import org.dreambot.api.methods.container.impl.Inventory; +import org.dreambot.api.methods.container.impl.bank.Bank; import org.dreambot.api.methods.filter.Filter; import org.dreambot.api.methods.interactive.GameObjects; import org.dreambot.api.methods.interactive.NPCs; @@ -35,7 +36,7 @@ public class GoToSawmill extends TaskNode { } Filter ringFilter = item -> item.getName().startsWith("Ring of dueling"); - if (Inventory.contains(ringFilter)) { + if (Inventory.contains(ringFilter) && !Bank.isOpen()) { Inventory.interact(ringFilter, "Wear"); MethodProvider.sleepUntil(() -> !Inventory.contains(ringFilter), Calculations.random(2000, 3000)); }