Skip to content

Commit

Permalink
fix loot modifiers not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrusso committed Nov 19, 2024
1 parent 79bba09 commit 0702f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minecraft/scripts/loot_modifiers.zs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class BonusBlockDrops {
val ignoreShears = this.ignoreShears;

this.block.addLootModifier(this.name, (drops, ctx) => {
if !ignoreShears && ctx.tool == <item:minecraft:shears> {
if ignoreShears && ctx.tool == <item:minecraft:shears> {
return drops;
}

Expand All @@ -34,7 +34,7 @@ public class BonusBlockDrops {
}

for percentagedItem in bonusDrops {
if rollsChance(ctx.random, percentagedItem.percentage) {
if rollsChance(ctx.random, percentagedItem.percentage * 100) {
drops.add(percentagedItem.data);
}
}
Expand Down

0 comments on commit 0702f75

Please sign in to comment.