Multiply update queue size by player count
This commit is contained in:
+7
@@ -22,6 +22,7 @@ package com.seibel.distanthorizons.common.wrappers.minecraft;
|
||||
import java.io.File;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.mojang.blaze3d.platform.NativeImage;
|
||||
@@ -321,4 +322,10 @@ public class MinecraftClientWrapper implements IMinecraftClientWrapper, IMinecra
|
||||
@Override
|
||||
public boolean isWorldNew() { throw new UnsupportedOperationException("Not Implemented"); }
|
||||
|
||||
@Override
|
||||
public int getPlayerCount()
|
||||
{
|
||||
return Objects.requireNonNull(MINECRAFT.getSingleplayerServer()).getPlayerCount();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+6
@@ -47,4 +47,10 @@ public class MinecraftServerWrapper implements IMinecraftSharedWrapper
|
||||
public boolean isWorldNew()
|
||||
{ return this.dedicatedServer.getWorldData().overworldData().isInitialized(); }
|
||||
|
||||
@Override
|
||||
public int getPlayerCount()
|
||||
{
|
||||
return this.dedicatedServer.getPlayerCount();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
Submodule coreSubProjects updated: 271f128de6...b8a862ddd8
Reference in New Issue
Block a user