Prevent air transforming into water if waterSubSurfaceBlockReplacementCsv contains invalid resource location

This commit is contained in:
Vojtěch Šokala
2026-05-07 15:39:14 +02:00
parent eb8fcaee36
commit 05bdaf0390
@@ -705,6 +705,8 @@ public class BlockStateWrapper implements IBlockStateWrapper
ObjectOpenHashSet<String> baseIgnoredBlock = new ObjectOpenHashSet<>();
waterSubsurfaceReplacementBlocks = getAllBlockWrappers(Config.Client.Advanced.Graphics.Culling.waterSubSurfaceBlockReplacementCsv, baseIgnoredBlock, levelWrapper);
waterSubsurfaceReplacementBlocks.remove(AIR);
return waterSubsurfaceReplacementBlocks;
}
public static IBlockStateWrapper getWaterBlockStateWrapper(ILevelWrapper levelWrapper)