Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Fix BackendSimpleGui not calling onClose
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Oct 3, 2024
1 parent b3e89f5 commit 837d104
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ audience_version=2.11.1
sgui_version=1.6.1+1.21.1

# Mod Properties
mod_version=1.6.0
mod_version=1.6.1
maven_group=net.mcbrawls
mod_id=brawls-sgui

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public void setParent(@Nullable GuiInterface parent) {

@Override
public void onClose() {
this.gui.onClose();

GuiInterface firstParent = ParentedGui.Companion.getFirstParent(this.gui);
if (firstParent != null && !firstParent.canPlayerClose()) {
firstParent.open();
Expand Down

0 comments on commit 837d104

Please sign in to comment.