diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-08-14 07:08:48 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-13 23:08:48 +0200 |
| commit | 8c2e0e144ac3499623decb44167ed5d508ae0cd1 (patch) | |
| tree | 14affbc2094adc42d340dc67de62fd7196bd42b5 | |
| parent | ef07864e7e133d6ef879745dafecdf8f9a5f5082 (diff) | |
| download | notenoughupdates-8c2e0e144ac3499623decb44167ed5d508ae0cd1.tar.gz notenoughupdates-8c2e0e144ac3499623decb44167ed5d508ae0cd1.tar.bz2 notenoughupdates-8c2e0e144ac3499623decb44167ed5d508ae0cd1.zip | |
Fix neusouls not showing bounding box when close (#1322)
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java index e447e4a9..5499b305 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/FairySouls.java @@ -44,12 +44,8 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import java.io.BufferedReader; import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.IOException; -import java.io.InputStreamReader; import java.lang.reflect.Type; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.ArrayList; import java.util.HashMap; @@ -184,6 +180,7 @@ public class FairySouls { double currentDistSq = lastPlayerPos.distanceSq(currentSoul); double factor = normalize(currentDistSq, 0.0, farSoulDistSq); int rgb = interpolateColors(closeColor, farColor, Math.min(0.40, factor)); + rgb = rgb | 0x66000000; RenderUtils.renderBeaconBeamOrBoundingBox(currentSoul, rgb, 1.0f, event.partialTicks); if (NotEnoughUpdates.INSTANCE.config.misc.fairySoulWaypointDistance) RenderUtils.renderWayPoint(currentSoul, event.partialTicks); } |
