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