fixed client loss of awareness that a world is singleplayer

This commit is contained in:
LAX1DUDE 2022-07-30 20:51:38 -07:00
parent 82f79f658e
commit 5f57e414f1
6 changed files with 12309 additions and 12309 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -122,7 +122,7 @@ public class IntegratedServer {
if(pause) {
statusState = IntegratedState.WORLD_PAUSED;
}else {
statusState = IntegratedState.WORLD_NONE;
statusState = IntegratedState.WORLD_LOADED;
}
sendIPCPacket(new IPCPacket0BPause(pause));
isPaused = pause;

View File

@ -15,6 +15,7 @@ import net.lax1dude.eaglercraft.GuiScreenLicense;
import net.lax1dude.eaglercraft.GuiVoiceOverlay;
import net.lax1dude.eaglercraft.LocalStorageManager;
import net.lax1dude.eaglercraft.Voice;
import net.lax1dude.eaglercraft.WorkerNetworkManager;
import net.lax1dude.eaglercraft.adapter.Tessellator;
import net.lax1dude.eaglercraft.glemu.EffectPipeline;
import net.lax1dude.eaglercraft.glemu.FixedFunctionShader;
@ -1880,7 +1881,7 @@ public class Minecraft implements Runnable {
* the integrated one.
*/
public boolean isSingleplayer() {
return isIntegratedServerRunning() && (this.theWorld == null || this.theWorld.playerEntities.size() <= 1);
return (myNetworkManager instanceof WorkerNetworkManager) && (this.theWorld == null || this.theWorld.playerEntities.size() <= 1);
}
/**