From 696414f31bfd26da0235cd0a9869587e61b9a3f7 Mon Sep 17 00:00:00 2001 From: Jakub Date: Fri, 13 Dec 2024 18:01:47 +0100 Subject: [PATCH] Fix custom drops chances --- .../java/com/dreammaster/modcustomdrops/CustomDropsHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dreammaster/modcustomdrops/CustomDropsHandler.java b/src/main/java/com/dreammaster/modcustomdrops/CustomDropsHandler.java index 09232195f..2f8ff7dcc 100644 --- a/src/main/java/com/dreammaster/modcustomdrops/CustomDropsHandler.java +++ b/src/main/java/com/dreammaster/modcustomdrops/CustomDropsHandler.java @@ -236,8 +236,8 @@ public void provideExtraDropsInformation(@NotNull String entityString, @NotNull stack.stackSize = drop.getAmount(); } MobDrop mobDrop = MobDrop.create(stack).withChance(chance).withHardPlayerRestriction(); + mobDrop.clampChance(); if (drop.getLimitedDropCount() > 0) { - mobDrop.clampChance(); mobDrop.withChanceModifiers( new IChanceModifier.NormalChance(mobDrop.chance / 100d), new LimitedDropCountModifier(drop.getLimitedDropCount()));