Remove worktop if handler returns

This commit is contained in:
KingRainbow44 2023-05-06 18:44:42 -04:00
parent d18b4ffdd4
commit 935de3f8e7
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -69,9 +69,7 @@ public final class GadgetWorktop extends GadgetContent {
} }
public boolean onSelectWorktopOption(SelectWorktopOptionReq req) { public boolean onSelectWorktopOption(SelectWorktopOptionReq req) {
if (this.handler != null) { return this.handler != null && this.handler
this.handler.onSelectWorktopOption(this, req.getOptionId()); .onSelectWorktopOption(this, req.getOptionId());
}
return false;
} }
} }