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.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/nms-patches/EntitySnowman.patch b/nms-patches/EntitySnowman.patch
index fbde5d23..47a97c9f 100644
--- a/nms-patches/EntitySnowman.patch
+++ b/nms-patches/EntitySnowman.patch
@@ -11,8 +11,8 @@
+
public class EntitySnowman extends EntityGolem implements IRangedEntity {
- public EntitySnowman(World world) {
-@@ -31,7 +37,7 @@
+ private static final DataWatcherObject<Byte> a = DataWatcher.a(EntitySnowman.class, DataWatcherRegistry.a);
+@@ -40,7 +46,7 @@
}
if (this.world.getBiome(new BlockPosition(i, 0, k)).a(new BlockPosition(i, j, k)) > 1.0F) {
@@ -20,11 +20,11 @@
+ this.damageEntity(CraftEventFactory.MELTING, 1.0F); // CraftBukkit - DamageSource.BURN -> CraftEventFactory.MELTING
}
- for (int l = 0; l < 4; ++l) {
-@@ -41,7 +47,17 @@
+ if (!this.world.getGameRules().getBoolean("mobGriefing")) {
+@@ -54,7 +60,17 @@
BlockPosition blockposition = new BlockPosition(i, j, k);
- if (this.world.getType(blockposition).getBlock().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(new BlockPosition(i, 0, k)).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();