diff --git a/src/main/java/me/jellysquid/mods/phosphor/mixins/common/ChunkMixin.java b/src/main/java/me/jellysquid/mods/phosphor/mixins/common/ChunkMixin.java index a3d64d2..14d1710 100644 --- a/src/main/java/me/jellysquid/mods/phosphor/mixins/common/ChunkMixin.java +++ b/src/main/java/me/jellysquid/mods/phosphor/mixins/common/ChunkMixin.java @@ -232,14 +232,10 @@ private int recheckGapsGetLowestHeight(WorldChunkSlice slice, int x, int z) { int j = x + facing.getOffsetX(); int k = z + facing.getOffsetZ(); - // TODO: revisit this patch!!! Chunk chunk = slice.getChunkFromWorldCoords(j, k); - int minHeight = max; if (chunk != null) { - minHeight = chunk.getMinimumHeightMap(); + max = Math.min(max, chunk.getMinimumHeightMap()); } - - max = Math.min(max, minHeight); } return max; @@ -262,7 +258,6 @@ private void checkSkylightNeighborHeight(WorldChunkSlice slice, int x, int z, in } Chunk chunk = slice.getChunkFromWorldCoords(x, z); - if (chunk == null) { PhosphorMod.LOGGER.warn("Chunk is null! x: " + x + " z: " + z + " maxValue: " + maxValue); return; @@ -280,10 +275,6 @@ else if (i < maxValue) { private void updateSkylightNeighborHeight(WorldChunkSlice slice, int x, int z, int startY, int endY) { if (endY > startY) { - /*if (!slice.isLoaded(x, z, 16)) { - return; - }*/ - for (int i = startY; i < endY; ++i) { this.world.method_8539(LightType.SKY, new BlockPos(x, i, z)); }