22w22b fixed chunks not loading in multiplayer after respawn

This commit is contained in:
LAX1DUDE 2022-06-05 13:19:05 -07:00
parent b98c1a416d
commit f190e65d93
9 changed files with 6222 additions and 6210 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@ public class ConfigConstants {
public static boolean profanity = false;
public static final String version = "22w22a";
public static final String version = "22w22b";
public static final String mainMenuString = "eaglercraft beta-" + version;
public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft";

View File

@ -555,7 +555,8 @@ public abstract class Minecraft implements Runnable {
if (!isWorldLoaded && theWorld != null) {
playerController.updateController();
if(++holdStillTimer == 150) {
if (thePlayer != null) {
if (thePlayer != null && !holdStillShownThisSession) {
holdStillShownThisSession = true;
if(isMultiplayerWorld()) {
//ingameGUI.addChatMessage("Known Multiplayer Bugs:");
//ingameGUI.addChatMessage(" - chunks may not show until you move around");
@ -876,6 +877,7 @@ public abstract class Minecraft implements Runnable {
mouseHelper.grabMouse();
} else {
EaglerProfile.freeAllSkins();
holdStillShownThisSession = false;
ungrabMouseCursor();
thePlayer = null;
}
@ -969,6 +971,7 @@ public abstract class Minecraft implements Runnable {
thePlayer.preparePlayerToSpawn();
playerController.flipPlayer(thePlayer);
theWorld.spawnPlayerWithLoadedChunks(thePlayer);
holdStillTimer = 0;
thePlayer.movementInput = new MovementInputFromOptions(gameSettings);
thePlayer.entityId = i;
thePlayer.func_6420_o();
@ -1058,6 +1061,7 @@ public abstract class Minecraft implements Runnable {
private int field_6300_ab;
private boolean awaitPointerLock;
public int holdStillTimer = 0;
public boolean holdStillShownThisSession = false;
private static Minecraft instance = null;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long