2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockSnow.java
|
|
|
|
+++ b/net/minecraft/server/BlockSnow.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -82,6 +82,11 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
|
|
|
|
if (world.b(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
|
|
|
+ // 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);
|
|
|
|
}
|