From 65b8d79adafc1ff722fe0ecf931a82c74b18f5de Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 10 Nov 2024 14:23:33 +0100 Subject: [PATCH] Fix engine initialization crash --- gradle.properties | 2 +- .../engine/minecraft/bukkit/BukkitLoggingAdapter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index bb46df0..4636a19 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,7 +21,7 @@ versioningCodename=Sugarcane versioningVersion=1 versioningType=release -versioningTyperelease=2 +versioningTyperelease=3 versioningFork= # Java diff --git a/platform-bukkit/src/main/java/de/staropensource/engine/minecraft/bukkit/BukkitLoggingAdapter.java b/platform-bukkit/src/main/java/de/staropensource/engine/minecraft/bukkit/BukkitLoggingAdapter.java index 0f82473..4f2f14e 100644 --- a/platform-bukkit/src/main/java/de/staropensource/engine/minecraft/bukkit/BukkitLoggingAdapter.java +++ b/platform-bukkit/src/main/java/de/staropensource/engine/minecraft/bukkit/BukkitLoggingAdapter.java @@ -40,7 +40,7 @@ public final class BukkitLoggingAdapter implements LoggingAdapter { @Override public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) { // Remove any tags - if (EngineConfiguration.getInstance().getLogFeatures().contains("formatting")) + if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().getLogFeatures().contains("formatting")) format = new EmptyShortcodeParser(format, true).getClean(); switch (level) {