diff options
author | EvilSeph <evilseph@gmail.com> | 2011-08-07 20:30:49 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-08-08 16:01:35 -0400 |
commit | 28b3c9b0d7ab7f3eba479483d5c24d54129e838f (patch) | |
tree | 56cc65f04b602c053a001e8c45698b4316884aa9 /src | |
parent | 831d97c8de842cb5a90062fd4cdcfec4898dd93a (diff) | |
download | craftbukkit-28b3c9b0d7ab7f3eba479483d5c24d54129e838f.tar craftbukkit-28b3c9b0d7ab7f3eba479483d5c24d54129e838f.tar.gz craftbukkit-28b3c9b0d7ab7f3eba479483d5c24d54129e838f.tar.lz craftbukkit-28b3c9b0d7ab7f3eba479483d5c24d54129e838f.tar.xz craftbukkit-28b3c9b0d7ab7f3eba479483d5c24d54129e838f.zip |
Fixed new type reporting in BlockFade event for snow and ice. Thanks DiddiZ!
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockIce.java | 2 | ||||
-rw-r--r-- | 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 a9bb77a6..16044958 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 31a91064..22fa603e 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); |