summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntitySnowman.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntitySnowman.patch')
-rw-r--r--nms-patches/EntitySnowman.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/EntitySnowman.patch b/nms-patches/EntitySnowman.patch
index 6a190b67..0fc4443b 100644
--- a/nms-patches/EntitySnowman.patch
+++ b/nms-patches/EntitySnowman.patch
@@ -12,7 +12,7 @@
public class EntitySnowman extends EntityGolem implements IRangedEntity {
-@@ -46,7 +51,7 @@
+@@ -59,7 +64,7 @@
}
if (this.world.getBiome(new BlockPosition(i, 0, k)).a(new BlockPosition(i, j, k)) > 1.0F) {
@@ -21,10 +21,10 @@
}
if (!this.world.getGameRules().getBoolean("mobGriefing")) {
-@@ -60,7 +65,17 @@
+@@ -73,7 +78,17 @@
BlockPosition blockposition = new BlockPosition(i, j, k);
- if (this.world.getType(blockposition).getMaterial() == Material.AIR && this.world.getBiome(new BlockPosition(i, 0, k)).a(blockposition) < 0.8F && Blocks.SNOW_LAYER.canPlace(this.world, blockposition)) {
+ if (this.world.getType(blockposition).getMaterial() == Material.AIR && this.world.getBiome(blockposition).a(blockposition) < 0.8F && Blocks.SNOW_LAYER.canPlace(this.world, blockposition)) {
- this.world.setTypeUpdate(blockposition, Blocks.SNOW_LAYER.getBlockData());
+ // CraftBukkit start
+ org.bukkit.block.BlockState blockState = this.world.getWorld().getBlockAt(i, j, k).getState();