diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockSnow.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/level/block/BlockSnow.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockSnow.patch b/patch-remap/og/net/minecraft/world/level/block/BlockSnow.patch new file mode 100644 index 0000000000..923cc20747 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/level/block/BlockSnow.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/world/level/block/BlockSnow.java ++++ b/net/minecraft/world/level/block/BlockSnow.java +@@ -99,6 +99,11 @@ + @Override + public 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); + } |