mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 22:03:51 -07:00
Update to Minecraft 1.13.1
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
+
|
||||
public class BlockSoil extends Block {
|
||||
|
||||
public static final BlockStateInteger MOISTURE = BlockProperties.ah;
|
||||
public static final BlockStateInteger MOISTURE = BlockProperties.ai;
|
||||
@@ -63,14 +68,37 @@
|
||||
}
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
+ // super.fallOn(world, blockposition, entity, f); // CraftBukkit - moved up
|
||||
}
|
||||
|
||||
protected static void b(IBlockData iblockdata, World world, BlockPosition blockposition) {
|
||||
public static void b(IBlockData iblockdata, World world, BlockPosition blockposition) {
|
||||
+ // CraftBukkit start
|
||||
+ if (CraftEventFactory.callBlockFadeEvent(world, blockposition, Blocks.DIRT.getBlockData()).isCancelled()) {
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
world.setTypeUpdate(blockposition, a(iblockdata, Blocks.DIRT.getBlockData(), (GeneratorAccess) world, blockposition));
|
||||
world.setTypeUpdate(blockposition, a(iblockdata, Blocks.DIRT.getBlockData(), world, blockposition));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user