From 431e5ea442ce3c0702332559fe28fe4d9608f436 Mon Sep 17 00:00:00 2001 From: Kodekpl Date: Wed, 4 Dec 2013 21:10:54 +0100 Subject: [PATCH] Set proper position of snow block. Fixes BUKKIT-5004 Missed diffs when updating to 1.7. Pulled from PR #1278 --- src/main/java/net/minecraft/server/EntitySnowman.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntitySnowman.java b/src/main/java/net/minecraft/server/EntitySnowman.java index d1b04a81d8..3628bf2f06 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);