2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockSnow.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockSnow.java
|
2022-06-07 18:00:00 +02:00
|
|
|
@@ -92,6 +92,11 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2022-06-07 18:00:00 +02:00
|
|
|
public void randomTick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, RandomSource randomsource) {
|
2019-12-10 23:00:00 +01:00
|
|
|
if (worldserver.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.defaultBlockState()).isCancelled()) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
dropResources(iblockdata, worldserver, blockposition);
|
|
|
|
worldserver.removeBlock(blockposition, false);
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|