diff options
Diffstat (limited to 'nms-patches/BlockSoil.patch')
-rw-r--r-- | nms-patches/BlockSoil.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/BlockSoil.patch b/nms-patches/BlockSoil.patch index eb2caefc..96deb823 100644 --- a/nms-patches/BlockSoil.patch +++ b/nms-patches/BlockSoil.patch @@ -1,8 +1,8 @@ --- a/net/minecraft/server/BlockSoil.java +++ b/net/minecraft/server/BlockSoil.java -@@ -3,6 +3,11 @@ - import java.util.Iterator; +@@ -4,6 +4,11 @@ import java.util.Random; + import javax.annotation.Nullable; +// CraftBukkit start +import org.bukkit.event.entity.EntityInteractEvent; @@ -12,7 +12,7 @@ public class BlockSoil extends Block { public static final BlockStateInteger MOISTURE = BlockStateInteger.of("moisture", 0, 7); -@@ -38,6 +43,12 @@ +@@ -40,6 +45,12 @@ if (i > 0) { world.setTypeAndData(blockposition, iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(i - 1)), 2); } else if (!this.b(world, blockposition)) { @@ -25,7 +25,7 @@ world.setTypeUpdate(blockposition, Blocks.DIRT.getBlockData()); } } else if (i < 7) { -@@ -47,11 +58,31 @@ +@@ -49,11 +60,31 @@ } public void fallOn(World world, BlockPosition blockposition, Entity entity, float f) { |