diff options
author | DoKM <mcazzyman@gmail.com> | 2021-07-20 12:44:18 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-07-20 12:44:18 +0200 |
commit | 3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f (patch) | |
tree | a17446cca4964a42b02f2345b0802f211427bbaf /src/main | |
parent | 4e96c08e76dd4b3efccbfd2bf6a958c583f75b06 (diff) | |
download | NotEnoughUpdates-3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f.tar.gz NotEnoughUpdates-3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f.tar.bz2 NotEnoughUpdates-3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f.zip |
add lava fishing support to fishing helper
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java | 5 |
1 files changed, 4 insertions, 1 deletions
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 32c64f4c..3bf75a0f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java @@ -272,6 +272,7 @@ public class FishingHelper { } public boolean onSpawnParticle(EnumParticleTypes particleType, double x, double y, double z, double xOffset, double yOffset, double zOffset) { + if(!NotEnoughUpdates.INSTANCE.config.fishing.hideOtherPlayerAll && !NotEnoughUpdates.INSTANCE.config.fishing.enableCustomParticles && !NotEnoughUpdates.INSTANCE.config.fishing.incomingFishWarning && @@ -282,10 +283,12 @@ public class FishingHelper { return false; } - if(particleType == EnumParticleTypes.WATER_WAKE && Math.abs(yOffset - 0.01f) < 0.001f) { + + if((particleType == EnumParticleTypes.WATER_WAKE|| particleType == EnumParticleTypes.SMOKE_NORMAL) && Math.abs(yOffset - 0.01f) < 0.001f) { double angle1 = calculateAngleFromOffsets(xOffset, -zOffset); double angle2 = calculateAngleFromOffsets(-xOffset, zOffset); + final List<Integer> possibleHooks1 = new ArrayList<>(); final List<Integer> possibleHooks2 = new ArrayList<>(); |