mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
SPIGOT-7960: Fix inconsistency between natural item drop coordinates
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b3b4fd1c4b
commit
8f7a88cc91
1 changed files with 2 additions and 2 deletions
|
@ -569,8 +569,8 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
|||
Preconditions.checkArgument(loc != null, "Location cannot be null");
|
||||
Preconditions.checkArgument(item != null, "ItemStack cannot be null");
|
||||
|
||||
double xs = 0.5D + MathHelper.nextDouble(world.random, -0.25D, 0.25D);
|
||||
double ys = 0.5D + MathHelper.nextDouble(world.random, -0.25D, 0.25D) - ((double) EntityTypes.ITEM.getHeight() / 2.0D);
|
||||
double xs = MathHelper.nextDouble(world.random, -0.25D, 0.25D);
|
||||
double ys = MathHelper.nextDouble(world.random, -0.25D, 0.25D) - ((double) EntityTypes.ITEM.getHeight() / 2.0D);
|
||||
double zs = MathHelper.nextDouble(world.random, -0.25D, 0.25D);
|
||||
loc = loc.clone().add(xs, ys, zs);
|
||||
return dropItem(loc, item, function);
|
||||
|
|
Loading…
Reference in a new issue