minor beacon beam height merge cleanup

This commit is contained in:
James Seibel
2025-01-26 17:41:46 -06:00
parent 042a0b6853
commit 3dbd05a4ae
2 changed files with 3 additions and 2 deletions
@@ -428,7 +428,7 @@ public class Config
.build();
public static ConfigEntry<Integer> beaconRenderHeight = new ConfigEntry.Builder<Integer>()
.setMinDefaultMax(1, 6000, Integer.MAX_VALUE)
.setMinDefaultMax(1, 6000, 6_000_000)
.comment(""
+ "Sets the maximum height at which beacons will render."
+ "This will only affect new beacons coming into LOD render distance."
@@ -96,9 +96,10 @@ public class BeaconRenderHandler
if (this.beaconBlockPosSet.add(beacon.blockPos))
{
int maxBeaconBeamHeight = Config.Client.Advanced.Graphics.GenericRendering.beaconRenderHeight.get();
DhApiRenderableBox beaconBox = new DhApiRenderableBox(
new DhApiVec3d(beacon.blockPos.getX(), beacon.blockPos.getY() + 1, beacon.blockPos.getZ()),
new DhApiVec3d(beacon.blockPos.getX() + 1, Config.Client.Advanced.Graphics.GenericRendering.beaconRenderHeight.get(), beacon.blockPos.getZ() + 1),
new DhApiVec3d(beacon.blockPos.getX() + 1, maxBeaconBeamHeight, beacon.blockPos.getZ() + 1),
beacon.color,
EDhApiBlockMaterial.ILLUMINATED
);