diff --git a/gradle.properties b/gradle.properties index 9cd851beb..be20c50c2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,6 +6,6 @@ versions_minecraft=1.18.2 versions_minecraft_range=[1.18.2,1.19) versions_forge=40.2.0 versions_forge_range=[40.2.0,) -versions_mod=1.7.5 +versions_mod=1.7.6 versions_mlib=4.1.0 versions_mlib_range=[4.1.0,5.0.0) \ No newline at end of file diff --git a/src/main/java/com/majruszsdifficulty/gamemodifiers/contexts/OnSoulJarMultiplier.java b/src/main/java/com/majruszsdifficulty/gamemodifiers/contexts/OnSoulJarMultiplier.java index c8b2fb687..39abdffcd 100644 --- a/src/main/java/com/majruszsdifficulty/gamemodifiers/contexts/OnSoulJarMultiplier.java +++ b/src/main/java/com/majruszsdifficulty/gamemodifiers/contexts/OnSoulJarMultiplier.java @@ -35,7 +35,7 @@ public float getMultiplier() { @Override public Level getLevel() { - return this.entity.getLevel(); + return this.entity != null ? this.entity.getLevel() : null; } } }