Handle filled buckets dispensing up and down. Fixes BUKKIT-3814

This commit is contained in:
Travis Watkins
2013-03-20 10:24:22 -05:00
parent 2fc755cc65
commit b325ffc8f6
2 changed files with 8 additions and 10 deletions

View File

@@ -108,11 +108,6 @@ public class BlockFire extends Block {
this.a(world, i, j, k - 1, 300 + b0, random, l);
this.a(world, i, j, k + 1, 300 + b0, random, l);
// CraftBukkit start - call to stop spread of fire
org.bukkit.Server server = world.getServer();
org.bukkit.World bworld = world.getWorld();
// CraftBukkit end
for (int i1 = i - 1; i1 <= i + 1; ++i1) {
for (int j1 = k - 1; j1 <= k + 1; ++j1) {
for (int k1 = j - 1; k1 <= j + 4; ++k1) {
@@ -145,6 +140,8 @@ public class BlockFire extends Block {
continue;
}
org.bukkit.Server server = world.getServer();
org.bukkit.World bworld = world.getWorld();
org.bukkit.block.BlockState blockState = bworld.getBlockAt(i1, k1, j1).getState();
blockState.setTypeId(this.id);
blockState.setData(new org.bukkit.material.MaterialData(this.id, (byte) k2));