SPIGOT-3286: Call BlockFormEvent for Concrete Powder -> Concrete

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-06-03 17:39:03 +10:00
parent da806eea9c
commit 1bcf144211
7 changed files with 32 additions and 9 deletions

View File

@@ -26,7 +26,7 @@
if (this.world.getType(blockposition).getMaterial() == Material.AIR && this.world.getBiome(blockposition).a(blockposition) < 0.8F && Blocks.SNOW_LAYER.canPlace(this.world, blockposition)) {
- this.world.setTypeUpdate(blockposition, Blocks.SNOW_LAYER.getBlockData());
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this.world, blockposition, Blocks.SNOW_LAYER, this); // CraftBukkit
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this.world, blockposition, Blocks.SNOW_LAYER.getBlockData(), this); // CraftBukkit
}
}
}