summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorKodekpl <Kodekgames@gmail.com>2013-12-04 21:10:54 +0100
committerfeildmaster <admin@feildmaster.com>2013-12-08 20:26:37 -0600
commit431e5ea442ce3c0702332559fe28fe4d9608f436 (patch)
treea7c6c75807a3545fccabb4d77f6cbb1a875e9f02 /src/main/java
parentff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b (diff)
downloadcraftbukkit-431e5ea442ce3c0702332559fe28fe4d9608f436.tar
craftbukkit-431e5ea442ce3c0702332559fe28fe4d9608f436.tar.gz
craftbukkit-431e5ea442ce3c0702332559fe28fe4d9608f436.tar.lz
craftbukkit-431e5ea442ce3c0702332559fe28fe4d9608f436.tar.xz
craftbukkit-431e5ea442ce3c0702332559fe28fe4d9608f436.zip
Set proper position of snow block. Fixes BUKKIT-5004
Missed diffs when updating to 1.7. Pulled from PR #1278
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/EntitySnowman.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySnowman.java b/src/main/java/net/minecraft/server/EntitySnowman.java
index d1b04a81..3628bf2f 100644
--- a/src/main/java/net/minecraft/server/EntitySnowman.java
+++ b/src/main/java/net/minecraft/server/EntitySnowman.java
@@ -49,7 +49,7 @@ public class EntitySnowman extends EntityGolem implements IRangedEntity {
k = MathHelper.floor(this.locZ + (double) ((float) (l / 2 % 2 * 2 - 1) * 0.25F));
if (this.world.getType(i, j, k).getMaterial() == Material.AIR && this.world.getBiome(i, k).a(i, j, k) < 0.8F && Blocks.SNOW.canPlace(this.world, i, j, k)) {
// CraftBukkit start
- org.bukkit.block.BlockState blockState = this.world.getWorld().getBlockAt(j, k, l).getState();
+ org.bukkit.block.BlockState blockState = this.world.getWorld().getBlockAt(i, j, k).getState();
blockState.setType(CraftMagicNumbers.getMaterial(Blocks.SNOW));
EntityBlockFormEvent event = new EntityBlockFormEvent(this.getBukkitEntity(), blockState.getBlock(), blockState);