mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 15:39:37 +00:00
Remove worktop if handler returns
This commit is contained in:
parent
d18b4ffdd4
commit
935de3f8e7
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user