Skip to content

Commit

Permalink
loot modifier randomness is now reliant on world seed
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper committed Dec 26, 2023
1 parent cc7fb1d commit 8be99ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public AddItemModifier(LootItemCondition[] conditionsIn, Item item, int min, int
for(LootItemCondition condition : conditions) {
if(!condition.test(context)) return generatedLoot;
}
RandomSource random = RandomSource.create();
RandomSource random = context.getRandom();
generatedLoot.add(new ItemStack(item, random.nextInt(min, max + 1)));
return generatedLoot;
}
Expand Down

0 comments on commit 8be99ce

Please sign in to comment.