mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 02:47:44 +01:00
15 lines
734 B
Diff
15 lines
734 B
Diff
|
--- a/net/minecraft/server/BlockSnowBlock.java
|
||
|
+++ b/net/minecraft/server/BlockSnowBlock.java
|
||
|
@@ -20,6 +20,11 @@
|
||
|
|
||
|
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
|
||
|
if (world.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
||
|
+ // CraftBukkit start
|
||
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockFadeEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), Blocks.AIR).isCancelled()) {
|
||
|
+ return;
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
this.b(world, blockposition, world.getType(blockposition), 0);
|
||
|
world.setAir(blockposition);
|
||
|
}
|