From c9898c7cf17d837678b1309bf38d882bf6b25edf Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 28 Apr 2022 20:12:26 +0200 Subject: stupid dojo fuck up --- .../moulberry/notenoughupdates/miscfeatures/FishingHelper.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java index 8fbd1185..b88eca99 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java @@ -268,9 +268,13 @@ public class FishingHelper { double dY = particleY - hook.posY; double tolerance = 0.5F; if (hook.worldObj != null) { - IBlockState state = hook.worldObj.getBlockState(new BlockPos(particleX, particleY-1, particleZ)); - if (state != null && (state.getBlock() == Blocks.flowing_lava || state.getBlock() == Blocks.flowing_water)) - tolerance = 2.0F; + for (int i = -2; i < 2; i++) { + IBlockState state = hook.worldObj.getBlockState(new BlockPos(particleX, particleY + i, particleZ)); + if (state != null && (state.getBlock() == Blocks.flowing_lava + || state.getBlock() == Blocks.flowing_water + || state.getBlock() == Blocks.lava)) + tolerance = 2.0F; + } } if (Math.abs(dY) > tolerance) { return HookPossibleRet.NOT_POSSIBLE; -- cgit