catch unexpected ClientTick exceptions to prevent crashing MC

This commit is contained in:
James Seibel
2023-11-25 07:39:06 -06:00
parent fc248d0956
commit d1d7cc4dd2
@@ -77,8 +77,15 @@ public class DhClientLevel extends DhLevel implements IDhClientLevel
@Override
public void clientTick()
{
this.chunkToLodBuilder.tick();
this.clientside.clientTick();
try
{
this.chunkToLodBuilder.tick();
this.clientside.clientTick();
}
catch (Exception e)
{
LOGGER.error("Unexpected clientTick Exception: "+e.getMessage(), e);
}
}
@Override