Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
15 Zeilen
821 B
Diff
15 Zeilen
821 B
Diff
|
--- ../work/decompile-bb26c12b/net/minecraft/server/BlockSnow.java 2014-11-27 08:59:46.577422392 +1100
|
||
|
+++ src/main/java/net/minecraft/server/BlockSnow.java 2014-11-27 08:42:10.144850927 +1100
|
||
|
@@ -85,6 +85,11 @@
|
||
|
|
||
|
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
|
||
|
if (world.b(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);
|
||
|
}
|