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

View File

@@ -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;

View File

@@ -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();

View File

@@ -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;
}