mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Fix #2875
This commit is contained in:
1 parent
1701732aac
commit
49d52b4a85
1 file changed
+1
-2
@@ -107,7 +107,6 @@ public class ItemGrassHorn extends ItemMod {
|
||||
|
||||
public static void breakGrass(World world, ItemStack stack, int stackDmg, BlockPos srcPos) {
|
||||
EnumHornType type = EnumHornType.getTypeForMeta(stackDmg);
|
||||
Random rand = new Random(srcPos.hashCode());
|
||||
int range = 12 - stackDmg * 3;
|
||||
int rangeY = 3 + stackDmg * 4;
|
||||
List<BlockPos> coords = new ArrayList<>();
|
||||
@@ -122,7 +121,7 @@ public class ItemGrassHorn extends ItemMod {
|
||||
coords.add(pos);
|
||||
}
|
||||
|
||||
Collections.shuffle(coords, rand);
|
||||
Collections.shuffle(coords, world.rand);
|
||||
|
||||
int count = Math.min(coords.size(), 32 + stackDmg * 16);
|
||||
for(int i = 0; i < count; i++) {
|
||||
|
||||
Reference in new issue
Block a user