mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
14 lines
702 B
Diff
14 lines
702 B
Diff
--- a/net/minecraft/server/BlockSnow.java
|
|
+++ b/net/minecraft/server/BlockSnow.java
|
|
@@ -67,6 +67,11 @@
|
|
@Override
|
|
public void tick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, Random random) {
|
|
if (worldserver.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
c(iblockdata, (World) worldserver, blockposition);
|
|
worldserver.a(blockposition, false);
|
|
}
|