mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 22:13:42 +01:00
15 lines
642 B
Diff
15 lines
642 B
Diff
--- a/net/minecraft/server/BlockSnow.java
|
|
+++ b/net/minecraft/server/BlockSnow.java
|
|
@@ -85,6 +85,11 @@
|
|
|
|
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Random random) {
|
|
if (world.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
iblockdata.a(world, blockposition, 0);
|
|
world.setAir(blockposition);
|
|
}
|