Skip to content

Commit

Permalink
Fix custom drops chances (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 authored Dec 13, 2024
1 parent b1f006d commit 099cc77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 099cc77

Please sign in to comment.