2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockSnow.java
|
|
|
|
+++ b/net/minecraft/server/BlockSnow.java
|
2017-05-14 04:00:00 +02:00
|
|
|
@@ -91,6 +91,11 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, 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
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), Blocks.AIR).isCancelled()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
this.b(world, blockposition, world.getType(blockposition), 0);
|
|
|
|
world.setAir(blockposition);
|
|
|
|
}
|