Skip to content

Commit

Permalink
v3.4.1 b625
Browse files Browse the repository at this point in the history
* fixed custom drops showing chunk kill count reached even when maximum-death-in-chunk-threshold is set to 0
  • Loading branch information
stumper66 committed Apr 1, 2022
1 parent 9b4eda7 commit babb149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>me.lokka30</groupId>
<artifactId>LevelledMobs</artifactId>
<version>3.4.0 b624</version>
<version>3.4.1 b625</version>
<packaging>jar</packaging>

<name>LevelledMobs</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit babb149

Please sign in to comment.