diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb52a7..ffa820d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning]. ## [Unreleased] - / +## [2.10.4] - 2023-12-07 +### Fixed +- Crash with newest kubejs version + ## [2.10.3] - 2023-09-27 ### Fixed - Fixed null pointer exception when using `addLootTableModifier` and an entity dies diff --git a/Common/src/main/java/com/almostreliable/lootjs/kube/LootModificationEventJS.java b/Common/src/main/java/com/almostreliable/lootjs/kube/LootModificationEventJS.java index ceb360a..d7cad95 100644 --- a/Common/src/main/java/com/almostreliable/lootjs/kube/LootModificationEventJS.java +++ b/Common/src/main/java/com/almostreliable/lootjs/kube/LootModificationEventJS.java @@ -129,15 +129,6 @@ protected void afterPosted(EventResult result) { } } catch (Exception exception) { ConsoleJS.SERVER.error(exception); - } finally { - if (CommonProperties.get().announceReload && UtilsJS.staticServer != null && - !CommonProperties.get().hideServerScriptErrors) { - if (!ScriptType.SERVER.errors.isEmpty()) { - UtilsJS.staticServer.kjs$tell(Component.literal( - "LootJS Errors found! [" + ScriptType.SERVER.errors.size() + - "]! Run '/kubejs errors' for more info").withStyle(ChatFormatting.DARK_RED)); - } - } } } } diff --git a/gradle.properties b/gradle.properties index d9fc2c3..51065cc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ enableAccessWidener = true modPackage = com.almostreliable.lootjs modId = lootjs modName = LootJS -modVersion = 3.0.0 +modVersion = 2.10.4 modAuthor = AlmostReliable modDescription = Modify global loot drops through KubeJS. @@ -23,7 +23,7 @@ fabricLoaderVersion = 0.14.21 # Project Dependencies parchmentVersion = 2023.06.26 -kubejsVersion = 2001.6.3-build.38 +kubejsVersion = 2001.6.4-build.109 # Github