Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Set proper position of snow block. Fixes BUKKIT-5004
Missed diffs when updating to 1.7. Pulled from PR #1278
Dieser Commit ist enthalten in:
Ursprung
ff0da6bad5
Commit
431e5ea442
@ -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));
|
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)) {
|
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
|
// 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));
|
blockState.setType(CraftMagicNumbers.getMaterial(Blocks.SNOW));
|
||||||
|
|
||||||
EntityBlockFormEvent event = new EntityBlockFormEvent(this.getBukkitEntity(), blockState.getBlock(), blockState);
|
EntityBlockFormEvent event = new EntityBlockFormEvent(this.getBukkitEntity(), blockState.getBlock(), blockState);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren