From babb1492d34c293e22332b70eb9cf5d97505f63e Mon Sep 17 00:00:00 2001 From: Penal Buffalo Date: Fri, 1 Apr 2022 16:26:15 -0500 Subject: [PATCH] v3.4.1 b625 * fixed custom drops showing chunk kill count reached even when maximum-death-in-chunk-threshold is set to 0 --- pom.xml | 2 +- .../me/lokka30/levelledmobs/customdrops/CustomDropsHandler.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1e971f02e..d45640d13 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ me.lokka30 LevelledMobs - 3.4.0 b624 + 3.4.1 b625 jar LevelledMobs diff --git a/src/main/java/me/lokka30/levelledmobs/customdrops/CustomDropsHandler.java b/src/main/java/me/lokka30/levelledmobs/customdrops/CustomDropsHandler.java index 333e43e91..b70cb23dd 100644 --- a/src/main/java/me/lokka30/levelledmobs/customdrops/CustomDropsHandler.java +++ b/src/main/java/me/lokka30/levelledmobs/customdrops/CustomDropsHandler.java @@ -551,6 +551,8 @@ else if (dropBase instanceof CustomCommand) { private boolean hasReachedChunkKillLimit(final @NotNull LivingEntityWrapper lmEntity){ final int maximumDeathInChunkThreshold = main.rulesManager.getMaximumDeathInChunkThreshold(lmEntity); + if (maximumDeathInChunkThreshold <= 0) return false; + return lmEntity.chunkKillcount >= maximumDeathInChunkThreshold; }