Skip to content

Commit 63bb0d6

Browse files
committed
made save and quit default behavior that needs to be toggled off
bumped patch number
1 parent 4173d82 commit 63bb0d6

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ minecraft_version=1.16.1
66
yarn_mappings=1.16.1+build.21
77
loader_version=0.11.3
88
# Mod Properties
9-
mod_version=1.4.0
9+
mod_version=1.4.1
1010
maven_group=fast_reset
1111
archives_base_name=fast-reset
1212
# Dependencies

src/main/java/fast_reset/client/mixin/GameMenuMixin.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ private ButtonWidget createExitButton(int defaultX, int defaultY, int defaultWid
3232
int y = Client.buttonLocation == 2 ? this.height - 24 : defaultY;
3333
int width = Client.buttonLocation == 2 ? (int) (bottomRightWidth * 1.5) : defaultWidth;
3434

35-
return new ButtonWidget(x, y, width, height, message, (b) -> {
36-
Client.saveOnQuit = true;
37-
onPress.onPress(b);
38-
});
35+
return new ButtonWidget(x, y, width, height, message, onPress);
3936
}
4037

4138
@Inject(method = "initWidgets", at=@At(value ="TAIL"))
@@ -88,6 +85,7 @@ private void createSaveButton(CallbackInfo ci){
8885
} else {
8986
this.client.openScreen(new MultiplayerScreen(new TitleScreen()));
9087
}
88+
Client.saveOnQuit = true;
9189
}));
9290
}
9391
}

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 1,
33
"id": "fast_reset",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"name": "FastReset",
66
"description": "",
77
"authors": [

0 commit comments

Comments
 (0)