mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Remove worktop if handler returns
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user