From 743ec5d565913096957f25568df00206f0e9c014 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 6 Jun 2023 23:12:21 +0200 Subject: [PATCH] Fixes --- .../zonlykroks/advancedscripts/screen/ScriptEditScreen.java | 6 +++++- steamwarci.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/zonlykroks/advancedscripts/screen/ScriptEditScreen.java b/src/main/java/de/zonlykroks/advancedscripts/screen/ScriptEditScreen.java index 98bb5e0..044b8ff 100644 --- a/src/main/java/de/zonlykroks/advancedscripts/screen/ScriptEditScreen.java +++ b/src/main/java/de/zonlykroks/advancedscripts/screen/ScriptEditScreen.java @@ -77,7 +77,10 @@ public class ScriptEditScreen extends Screen { @Override protected void init() { this.addDrawableChild( - new Button(DONE, this.width / 2 - 98 / 2, height - 55, () -> { + new Button(CANCEL, this.width / 2 - 100, height - 55, () -> this.client.setScreen(null)) + ); + this.addDrawableChild( + new Button(DONE, this.width / 2 + 2, height - 55, () -> { this.client.setScreen(null); finalizeBook(); }) @@ -91,6 +94,7 @@ public class ScriptEditScreen extends Screen { } public static final Text DONE = Text.translatable("gui.done"); + public static final Text CANCEL = Text.translatable("gui.cancel"); public static final Text BOOK = Text.translatable("item.minecraft.book"); private static class Button extends PressableWidget { diff --git a/steamwarci.yml b/steamwarci.yml index ddd1f90..2498190 100644 --- a/steamwarci.yml +++ b/steamwarci.yml @@ -2,4 +2,4 @@ build: - "./gradlew remapJar" artifacts: - "/binarys/AdvancedScripts.jar": "build/libs/AdvancedScripts-1.0.0.jar" \ No newline at end of file + "/binarys/AdvancedScripts.jar": "build/libs/AdvancedScripts-2.0.0.jar" \ No newline at end of file