From 7fd0125db5d08eb81da27dc2e9820da2a373e0f9 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 15 Jan 2011 13:45:48 -0800 Subject: [PATCH] Fixed World.dropItemNaturally() not specifying the Y and Z coordinates correctly. --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 3a414cfdad..67cf4e4927 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/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); }