mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-09 06:50:32 +08:00
Fixed World.dropItemNaturally() not specifying the Y and Z coordinates correctly.
This commit is contained in:
parent
5dafc601db
commit
7fd0125db5
@ -148,8 +148,8 @@ public class CraftWorld implements World {
|
|||||||
double zs = world.l.nextFloat() * 0.7F + (1.0F - 0.7F) * 0.5D;
|
double zs = world.l.nextFloat() * 0.7F + (1.0F - 0.7F) * 0.5D;
|
||||||
loc = loc.clone();
|
loc = loc.clone();
|
||||||
loc.setX(loc.getX() + xs);
|
loc.setX(loc.getX() + xs);
|
||||||
loc.setX(loc.getY() + ys);
|
loc.setY(loc.getY() + ys);
|
||||||
loc.setX(loc.getZ() + zs);
|
loc.setZ(loc.getZ() + zs);
|
||||||
return dropItem(loc, item);
|
return dropItem(loc, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user