Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-17 12:00:07 +01:00
15 Zeilen
652 B
Diff
15 Zeilen
652 B
Diff
--- a/net/minecraft/server/BlockSnowBlock.java
|
|
+++ b/net/minecraft/server/BlockSnowBlock.java
|
|
@@ -18,6 +18,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);
|
|
}
|