From 28b3c9b0d7ab7f3eba479483d5c24d54129e838f Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sun, 7 Aug 2011 20:30:49 -0400 Subject: [PATCH] Fixed new type reporting in BlockFade event for snow and ice. Thanks DiddiZ! --- src/main/java/net/minecraft/server/BlockIce.java | 2 +- src/main/java/net/minecraft/server/BlockSnow.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/BlockIce.java b/src/main/java/net/minecraft/server/BlockIce.java index a9bb77a63e..1604495806 100644 --- a/src/main/java/net/minecraft/server/BlockIce.java +++ b/src/main/java/net/minecraft/server/BlockIce.java @@ -29,7 +29,7 @@ public class BlockIce extends BlockBreakable { if (world.a(EnumSkyBlock.BLOCK, i, j, k) > 11 - Block.q[this.id]) { // CraftBukkit start org.bukkit.block.BlockState blockState = world.getWorld().getBlockAt(i, j, k).getState(); - blockState.setTypeId(this.id); + blockState.setTypeId(Block.STATIONARY_WATER.id); BlockFadeEvent event = new BlockFadeEvent(blockState.getBlock(), blockState); world.getServer().getPluginManager().callEvent(event); diff --git a/src/main/java/net/minecraft/server/BlockSnow.java b/src/main/java/net/minecraft/server/BlockSnow.java index 31a91064be..22fa603e23 100644 --- a/src/main/java/net/minecraft/server/BlockSnow.java +++ b/src/main/java/net/minecraft/server/BlockSnow.java @@ -79,7 +79,7 @@ public class BlockSnow extends Block { if (world.a(EnumSkyBlock.BLOCK, i, j, k) > 11) { // CraftBukkit start org.bukkit.block.BlockState blockState = world.getWorld().getBlockAt(i, j, k).getState(); - blockState.setTypeId(this.id); + blockState.setTypeId(0); BlockFadeEvent event = new BlockFadeEvent(blockState.getBlock(), blockState); world.getServer().getPluginManager().callEvent(event);