This commit is contained in:
Vincent Lee committed 2019-03-27 20:16:58 -05:00
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++) {