import java.awt.*;
-public class WorldSpawnRenderer extends Renderer<BoundingBoxWorldSpawn> {
+public class WorldSpawnRenderer extends AbstractRenderer<BoundingBoxWorldSpawn> {
@Override
public void render(BoundingBoxWorldSpawn boundingBox) {
Color color = boundingBox.getColor();
Coords minCoords = boundingBox.getMinCoords();
Coords maxCoords = boundingBox.getMaxCoords();
- double y = PlayerCoords.getMaxY(ConfigManager.worldSpawnMaxY.get()) + 0.001F;
+ double y = PlayerCoords.getMaxY(ConfigManager.worldSpawnMaxY.get());
- OffsetBox bb = new OffsetBox(minCoords.getX(), y, minCoords.getZ(), maxCoords.getX(), y, maxCoords.getZ());
- renderCuboid(bb, color, false);
+ OffsetBox offsetBox = new OffsetBox(minCoords.getX(), y, minCoords.getZ(), maxCoords.getX(), y, maxCoords.getZ());
+ renderOutlinedCuboid(offsetBox.nudge(), color);
}
}