fixed client loss of awareness that a world is singleplayer
This commit is contained in:
parent
82f79f658e
commit
5f57e414f1
6 changed files with 12309 additions and 12309 deletions
16926
javascript/classes.js
16926
javascript/classes.js
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
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue