From b6a2a9d51509a9b3a3d8e39657127f2626c600ee Mon Sep 17 00:00:00 2001 From: Britakee <127439938+realBritakee@users.noreply.github.com> Date: Wed, 18 Feb 2026 08:57:15 +0100 Subject: [PATCH] =?UTF-8?q?updated=20the=20template=20so=20it=20finds=20Hy?= =?UTF-8?q?tale=20even=20when=20it=20isn=E2=80=99t=20in=20the=20default=20?= =?UTF-8?q?path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 9 +++++---- src/main/resources/manifest.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index ad87ae3..e1ecb6b 100644 --- a/build.gradle +++ b/build.gradle @@ -9,8 +9,9 @@ import org.gradle.internal.os.OperatingSystem ext { if (project.hasProperty('hytale_home')) { hytaleHome = project.findProperty('hytale_home') - } - else { + } else if (System.getenv('HYTALE_HOME')) { + hytaleHome = System.getenv('HYTALE_HOME') + } else { def os = OperatingSystem.current() if (os.isWindows()) { hytaleHome = "${System.getProperty("user.home")}/AppData/Roaming/Hytale" @@ -27,8 +28,8 @@ ext { } } -def hytaleHomePath = project.findProperty('hytaleHome') -def hasHytaleHome = hytaleHomePath && file(hytaleHomePath).exists() +def hytaleHomePath = ext.has('hytaleHome') ? hytaleHome : null +def hasHytaleHome = (hytaleHomePath != null) && file(hytaleHomePath).exists() if (!hasHytaleHome) { logger.lifecycle("Hytale install not detected; run configs that launch the server will be skipped. Set -Phytale_home=/path/to/Hytale to enable them.") } diff --git a/src/main/resources/manifest.json b/src/main/resources/manifest.json index 5c8357c..c39edab 100644 --- a/src/main/resources/manifest.json +++ b/src/main/resources/manifest.json @@ -1,7 +1,7 @@ { "Group": "Example", "Name": "ExamplePlugin", - "Version": "0.0.3", + "Version": "0.0.2", "Description": "An example plugin for HyTale!", "Authors": [ {