9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2026-01-03 14:22:30 +00:00

""Fix"" Parallax map null issues

This commit is contained in:
Daniel Mills
2020-10-27 02:49:52 -04:00
parent 361d02e075
commit e75afe6c41
3 changed files with 102 additions and 77 deletions

View File

@@ -173,6 +173,20 @@ public abstract class ParallaxTerrainProvider extends TopographicTerrainProvider
{
try
{
if(getParallaxMap() == null)
{
if(getTarget() == null)
{
Iris.warn("Parallax map was accessed before init! Serving a dummy chunk!");
return new AtomicSliverMap();
}
else
{
setParallaxMap(new AtomicWorldData(getTarget()));
}
}
return getParallaxMap().loadChunk(x, z);
}