aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-20 12:44:18 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-20 12:44:18 +0200
commit3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f (patch)
treea17446cca4964a42b02f2345b0802f211427bbaf
parent4e96c08e76dd4b3efccbfd2bf6a958c583f75b06 (diff)
downloadNotEnoughUpdates-3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f.tar.gz
NotEnoughUpdates-3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f.tar.bz2
NotEnoughUpdates-3bd5eaa917dd8506d1a9aed265b638d7e0a3f12f.zip
add lava fishing support to fishing helper
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FishingHelper.java5
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<>();