onConfigureClosed (#6523)

* onConfigureClosed

* Run the closing of the previous block's config on the opening of another
This commit is contained in:
Matthew (or Maya) Peng
2022-01-23 19:34:28 -05:00
committed by GitHub
parent e2658ba497
commit 716702623d
2 changed files with 7 additions and 0 deletions
@@ -1249,6 +1249,11 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
return self() != other;
}
/**
* Called when this block's config menu is closed
*/
public void onConfigureClosed(){}
/** Returns whether this config menu should show when the specified player taps it. */
public boolean shouldShowConfigure(Player player){
return true;