2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockSnow.java
|
|
|
|
+++ b/net/minecraft/server/BlockSnow.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -58,6 +58,11 @@
|
|
|
|
@Override
|
2019-12-10 23:00:00 +01:00
|
|
|
public void tick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, Random random) {
|
|
|
|
if (worldserver.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
2019-12-10 23:00:00 +01:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2019-12-10 23:00:00 +01:00
|
|
|
c(iblockdata, (World) worldserver, blockposition);
|
|
|
|
worldserver.a(blockposition, false);
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|