mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Set proper position of snow block. Fixes BUKKIT-5004
Missed diffs when updating to 1.7. Pulled from PR #1278
This commit is contained in:
parent
ff0da6bad5
commit
431e5ea442
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue