N.M.S cleanup in preparation for update

This commit is contained in:
Dinnerbone
2011-02-21 22:30:01 +00:00
parent 67cf646014
commit f659231e34
33 changed files with 105 additions and 150 deletions

View File

@@ -137,18 +137,20 @@ public class BlockFire extends Block {
org.bukkit.block.Block theBlock = (cworld.getBlockAt(i, j, k));
BlockBurnEvent event = new BlockBurnEvent(theBlock);
server.getPluginManager().callEvent(event);
if(!event.isCancelled()) {
if (random.nextInt(2) == 0) {
world.e(i, j, k, this.id);
} else {
world.e(i, j, k, 0);
}
if (flag) {
Block.TNT.a(world, i, j, k, 0);
}
if(event.isCancelled()) {
return;
}
// CraftBukkit end
if (random.nextInt(2) == 0) {
world.e(i, j, k, this.id);
} else {
world.e(i, j, k, 0);
}
if (flag) {
Block.TNT.a(world, i, j, k, 0);
}
}
}