Fixed new type reporting in BlockFade event for snow and ice. Thanks DiddiZ!

This commit is contained in:
EvilSeph 2011-08-07 20:30:49 -04:00
parent 831d97c8de
commit 28b3c9b0d7
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);