mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-25 15:06:14 +00:00
15 lines
764 B
Diff
15 lines
764 B
Diff
--- a/net/minecraft/world/level/block/BlockSnow.java
|
|
+++ b/net/minecraft/world/level/block/BlockSnow.java
|
|
@@ -99,6 +99,11 @@
|
|
@Override
|
|
protected void randomTick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, RandomSource randomsource) {
|
|
if (worldserver.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.defaultBlockState()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
dropResources(iblockdata, worldserver, blockposition);
|
|
worldserver.removeBlock(blockposition, false);
|
|
}
|