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

Dieser Commit ist enthalten in:
EvilSeph 2011-08-07 20:30:49 -04:00
Ursprung 831d97c8de
Commit 28b3c9b0d7
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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