From d8570dd6a9edbc36535eb8cb353a9eba7b5d1068 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Fri, 23 Apr 2021 16:52:25 +0200 Subject: [PATCH] Add break on stack replaced --- .idea/vcs.xml | 6 ++++++ .../w1zzrd/invtweaks/listeners/StackReplaceListener.java | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/dev/w1zzrd/invtweaks/listeners/StackReplaceListener.java b/src/dev/w1zzrd/invtweaks/listeners/StackReplaceListener.java index 6a08d57..47c8b29 100644 --- a/src/dev/w1zzrd/invtweaks/listeners/StackReplaceListener.java +++ b/src/dev/w1zzrd/invtweaks/listeners/StackReplaceListener.java @@ -30,6 +30,8 @@ public class StackReplaceListener implements Listener { inv.setItem(event.getHand(), checkStack); logger.info("Moved stack into players empty hand"); + + break; } } }