mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 10:57:42 +00:00
Misc shit, some playerdata doesnt save
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user