mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user