From 935de3f8e7b5ea9f9b367f70da1e80c91f3a93b7 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 6 May 2023 18:44:42 -0400 Subject: [PATCH] Remove worktop if handler returns --- .../emu/grasscutter/game/entity/gadget/GadgetWorktop.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/entity/gadget/GadgetWorktop.java b/src/main/java/emu/grasscutter/game/entity/gadget/GadgetWorktop.java index 7b7c11854..db1b70c19 100644 --- a/src/main/java/emu/grasscutter/game/entity/gadget/GadgetWorktop.java +++ b/src/main/java/emu/grasscutter/game/entity/gadget/GadgetWorktop.java @@ -69,9 +69,7 @@ public final class GadgetWorktop extends GadgetContent { } public boolean onSelectWorktopOption(SelectWorktopOptionReq req) { - if (this.handler != null) { - this.handler.onSelectWorktopOption(this, req.getOptionId()); - } - return false; + return this.handler != null && this.handler + .onSelectWorktopOption(this, req.getOptionId()); } }