aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower/net/minecraft/world/level/block/RootedDirtBlock.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower/net/minecraft/world/level/block/RootedDirtBlock.java.patch')
-rw-r--r--patch-remap/mache-vineflower/net/minecraft/world/level/block/RootedDirtBlock.java.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower/net/minecraft/world/level/block/RootedDirtBlock.java.patch b/patch-remap/mache-vineflower/net/minecraft/world/level/block/RootedDirtBlock.java.patch
new file mode 100644
index 0000000000..a08956bba9
--- /dev/null
+++ b/patch-remap/mache-vineflower/net/minecraft/world/level/block/RootedDirtBlock.java.patch
@@ -0,0 +1,43 @@
+--- a/net/minecraft/world/level/block/RootedDirtBlock.java
++++ b/net/minecraft/world/level/block/RootedDirtBlock.java
+@@ -7,14 +7,15 @@
+ import net.minecraft.world.level.Level;
+ import net.minecraft.world.level.LevelReader;
+ import net.minecraft.world.level.block.state.BlockBehaviour;
+-import net.minecraft.world.level.block.state.BlockState;
++import net.minecraft.world.level.block.state.IBlockData;
+
+ public class RootedDirtBlock extends Block implements BonemealableBlock {
++
+ public static final MapCodec<RootedDirtBlock> CODEC = simpleCodec(RootedDirtBlock::new);
+
+ @Override
+ public MapCodec<RootedDirtBlock> codec() {
+- return CODEC;
++ return RootedDirtBlock.CODEC;
+ }
+
+ public RootedDirtBlock(BlockBehaviour.Properties properties) {
+@@ -22,17 +23,17 @@
+ }
+
+ @Override
+- public boolean isValidBonemealTarget(LevelReader levelReader, BlockPos blockPos, BlockState blockState) {
+- return levelReader.getBlockState(blockPos.below()).isAir();
++ public boolean isValidBonemealTarget(LevelReader iworldreader, BlockPos blockposition, IBlockData iblockdata) {
++ return iworldreader.getBlockState(blockposition.below()).isAir();
+ }
+
+ @Override
+- public boolean isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state) {
++ public boolean isBonemealSuccess(Level level, RandomSource random, BlockPos pos, IBlockData state) {
+ return true;
+ }
+
+ @Override
+- public void performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state) {
+- level.setBlockAndUpdate(pos.below(), Blocks.HANGING_ROOTS.defaultBlockState());
++ public void performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, IBlockData state) {
++ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(level, pos, pos.below(), Blocks.HANGING_ROOTS.defaultBlockState()); // CraftBukkit
+ }
+ }