Only tick levels the player is in on the client.
This commit is contained in:
@@ -221,6 +221,7 @@ public class DhClientLevel extends AbstractDhLevel implements IDhClientLevel
|
||||
{
|
||||
try
|
||||
{
|
||||
if (MC_CLIENT.getWrappedClientLevel() == null || MC_CLIENT.getWrappedClientLevel().getDhLevel() != this) return;
|
||||
this.clientside.clientTick();
|
||||
|
||||
if (this.syncOnLoadRequestQueue != null)
|
||||
|
||||
@@ -71,7 +71,11 @@ public class DhClientServerLevel extends AbstractDhServerLevel implements IDhCli
|
||||
//region
|
||||
|
||||
@Override
|
||||
public void clientTick() { this.clientside.clientTick(); }
|
||||
public void clientTick()
|
||||
{
|
||||
if (MC_CLIENT.getWrappedClientLevel() == null || MC_CLIENT.getWrappedClientLevel().getDhLevel() != this) return;
|
||||
this.clientside.clientTick();
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user