SPIGOT-1264: Spurious BlockFadeEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-06-30 14:47:05 +10:00
parent 51742aae6c
commit 66392c6d78

View file

@ -94,15 +94,6 @@
if (random.nextInt(j + 10) < 5 && !world.isRainingAt(blockposition)) {
int l = j + random.nextInt(5) / 4;
@@ -219,7 +255,7 @@
world.setTypeAndData(blockposition, this.getBlockData().set(BlockFire.AGE, Integer.valueOf(l)), 3);
} else {
- world.setAir(blockposition);
+ fireExtinguished(world, blockposition); // CraftBukkit
}
if (iblockdata.getBlock() == Blocks.TNT) {
@@ -276,7 +312,7 @@
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Block block) {