SPIGOT-4050: Snow erasing block below it

This commit is contained in:
md_5 2018-07-19 15:44:55 +10:00
parent 6c944b2163
commit c1d9f94223

View File

@ -324,7 +324,7 @@
if (flag && biomebase.b(this, blockposition)) { if (flag && biomebase.b(this, blockposition)) {
- this.setTypeUpdate(blockposition, Blocks.SNOW.getBlockData()); - this.setTypeUpdate(blockposition, Blocks.SNOW.getBlockData());
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this, blockposition1, Blocks.SNOW.getBlockData(), null); // CraftBukkit + org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this, blockposition, Blocks.SNOW.getBlockData(), null); // CraftBukkit
} }
if (flag && this.getBiome(blockposition1).c() == BiomeBase.Precipitation.RAIN) { if (flag && this.getBiome(blockposition1).c() == BiomeBase.Precipitation.RAIN) {