From f4f967ec4db289c349bf7a8061f8475cab958e08 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 15 Jan 2011 13:45:48 -0800 Subject: [PATCH] Fixed World.dropItemNaturally() not specifying the Y and Z coordinates correctly. By: sk89q --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 3a414cfdad..67cf4e4927 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -148,8 +148,8 @@ public class CraftWorld implements World { double zs = world.l.nextFloat() * 0.7F + (1.0F - 0.7F) * 0.5D; loc = loc.clone(); loc.setX(loc.getX() + xs); - loc.setX(loc.getY() + ys); - loc.setX(loc.getZ() + zs); + loc.setY(loc.getY() + ys); + loc.setZ(loc.getZ() + zs); return dropItem(loc, item); }