This commit is contained in:
gamma-delta 2022-04-26 10:25:16 -05:00
commit 0e873d8b86
2 changed files with 3 additions and 3 deletions

View file

@ -18,6 +18,6 @@
} }
} }
], ],
"modifier": -2.0, "modifier": -0.5,
"type": "hexcasting:amethyst_shard_reducer" "type": "hexcasting:amethyst_shard_reducer"
} }

View file

@ -26,7 +26,7 @@ public class AmethystShardReducerModifier extends LootModifier {
protected List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) { protected List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) {
for (var stack : generatedLoot) { for (var stack : generatedLoot) {
if (stack.is(Items.AMETHYST_SHARD)) { if (stack.is(Items.AMETHYST_SHARD)) {
stack.shrink((int) (stack.getCount() * modifier)); stack.setCount((int) (stack.getCount() * (1 + modifier)));
} }
} }
return generatedLoot; return generatedLoot;