2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockSnow.java
|
|
|
|
+++ b/net/minecraft/server/BlockSnow.java
|
2018-12-06 00:00:00 +01:00
|
|
|
@@ -85,6 +85,11 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Random random) {
|
2016-11-17 02:41:03 +01:00
|
|
|
if (world.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
2018-07-15 02:00:00 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-07-15 02:00:00 +02:00
|
|
|
iblockdata.a(world, blockposition, 0);
|
2014-11-25 22:32:16 +01:00
|
|
|
world.setAir(blockposition);
|
|
|
|
}
|