Skip to content

Commit

Permalink
fix crash on newest kubejs version
Browse files Browse the repository at this point in the history
  • Loading branch information
LLytho committed Dec 7, 2023
1 parent 841d671 commit 81da022
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
}
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down

0 comments on commit 81da022

Please sign in to comment.