Misc shit, some playerdata doesnt save

This commit is contained in:
Catfoolyou 2025-04-17 15:14:17 -04:00
parent 6836e6d28e
commit 93f0b27e21
7 changed files with 6167 additions and 6165 deletions
javascript
sp-server/src/main/java/net
src/main/java/net
lax1dude/eaglercraft
minecraft/src

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -137,6 +137,7 @@ public class VFSSaveHandler implements ISaveHandler, IPlayerFileData {
@Override
public NBTTagCompound readPlayerData(EntityPlayer var1) {
System.out.println("trying to read player data");
VFile playerData = new VFile(worldDirectory, "player", var1.username.toLowerCase() + ".dat");
NBTTagCompound ret = null;

@ -175,6 +175,7 @@ public abstract class ServerConfigurationManager
*/
public NBTTagCompound readPlayerDataFromFile(EntityPlayerMP par1EntityPlayerMP)
{
System.out.println("reading player data");
NBTTagCompound var2 = this.mcServer.worldServers[0].getWorldInfo().getPlayerNBTTagCompound();
NBTTagCompound var3;
@ -210,7 +211,7 @@ public abstract class ServerConfigurationManager
this.playerEntityList.add(par1EntityPlayerMP);
WorldServer var2 = this.mcServer.worldServerForDimension(par1EntityPlayerMP.dimension);
var2.spawnEntityInWorld(par1EntityPlayerMP);
this.func_72375_a(par1EntityPlayerMP, (WorldServer)null);
this.func_72375_a(par1EntityPlayerMP, null);
for (int var3 = 0; var3 < this.playerEntityList.size(); ++var3)
{
@ -232,6 +233,7 @@ public abstract class ServerConfigurationManager
*/
public void playerLoggedOut(EntityPlayerMP par1EntityPlayerMP)
{
System.out.println("disconnected from world, saving player data");
this.writePlayerData(par1EntityPlayerMP);
WorldServer var2 = par1EntityPlayerMP.getServerForPlayer();

@ -161,6 +161,7 @@ public class WorldInfo
if (par1NBTTagCompound.hasKey("Player"))
{
System.out.println("set player tag");
this.playerTag = par1NBTTagCompound.getCompoundTag("Player");
this.dimension = this.playerTag.getInteger("Dimension");
}
@ -325,6 +326,7 @@ public class WorldInfo
*/
public NBTTagCompound getPlayerNBTTagCompound()
{
System.out.println("getting player data");
return this.playerTag;
}

@ -5,7 +5,7 @@ import java.util.List;
public class ConfigConstants {
public static final String version = "25w15b";
public static final String version = "25w16a";
public static final String mainMenuString = "Eaglercraft " + version;
public static final String forkMe = "https://git.zelz.net/catfoolyou/Project164";

@ -15,7 +15,6 @@ public class GuiMainMenu extends GuiScreen {
/** The splash message. */
public String splashText = null;
private GuiButton buttonResetDemo;
private static boolean showingEndian = true;
private static final int showRandomItem;
@ -40,12 +39,8 @@ public class GuiMainMenu extends GuiScreen {
* background.
*/
private static int viewportTexture = -1;
private boolean field_96141_q = true;
private static boolean field_96140_r = false;
private static boolean field_96139_s = false;
private final Object field_104025_t = new Object();
private String field_92025_p;
private String field_104024_v;
/** An array of all the paths to the panorama pictures. */
private static final TextureLocation[] titlePanoramaPaths = new TextureLocation[] { new TextureLocation("/title/bg/panorama0.png"), new TextureLocation("/title/bg/panorama1.png"), new TextureLocation("/title/bg/panorama2.png"), new TextureLocation("/title/bg/panorama3.png"), new TextureLocation("/title/bg/panorama4.png"), new TextureLocation("/title/bg/panorama5.png") };