Misc shit, some playerdata doesnt save
This commit is contained in:
parent
6836e6d28e
commit
93f0b27e21
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
|
@Override
|
||||||
public NBTTagCompound readPlayerData(EntityPlayer var1) {
|
public NBTTagCompound readPlayerData(EntityPlayer var1) {
|
||||||
|
System.out.println("trying to read player data");
|
||||||
VFile playerData = new VFile(worldDirectory, "player", var1.username.toLowerCase() + ".dat");
|
VFile playerData = new VFile(worldDirectory, "player", var1.username.toLowerCase() + ".dat");
|
||||||
|
|
||||||
NBTTagCompound ret = null;
|
NBTTagCompound ret = null;
|
||||||
|
|
|
@ -175,6 +175,7 @@ public abstract class ServerConfigurationManager
|
||||||
*/
|
*/
|
||||||
public NBTTagCompound readPlayerDataFromFile(EntityPlayerMP par1EntityPlayerMP)
|
public NBTTagCompound readPlayerDataFromFile(EntityPlayerMP par1EntityPlayerMP)
|
||||||
{
|
{
|
||||||
|
System.out.println("reading player data");
|
||||||
NBTTagCompound var2 = this.mcServer.worldServers[0].getWorldInfo().getPlayerNBTTagCompound();
|
NBTTagCompound var2 = this.mcServer.worldServers[0].getWorldInfo().getPlayerNBTTagCompound();
|
||||||
NBTTagCompound var3;
|
NBTTagCompound var3;
|
||||||
|
|
||||||
|
@ -210,7 +211,7 @@ public abstract class ServerConfigurationManager
|
||||||
this.playerEntityList.add(par1EntityPlayerMP);
|
this.playerEntityList.add(par1EntityPlayerMP);
|
||||||
WorldServer var2 = this.mcServer.worldServerForDimension(par1EntityPlayerMP.dimension);
|
WorldServer var2 = this.mcServer.worldServerForDimension(par1EntityPlayerMP.dimension);
|
||||||
var2.spawnEntityInWorld(par1EntityPlayerMP);
|
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)
|
for (int var3 = 0; var3 < this.playerEntityList.size(); ++var3)
|
||||||
{
|
{
|
||||||
|
@ -232,6 +233,7 @@ public abstract class ServerConfigurationManager
|
||||||
*/
|
*/
|
||||||
public void playerLoggedOut(EntityPlayerMP par1EntityPlayerMP)
|
public void playerLoggedOut(EntityPlayerMP par1EntityPlayerMP)
|
||||||
{
|
{
|
||||||
|
System.out.println("disconnected from world, saving player data");
|
||||||
this.writePlayerData(par1EntityPlayerMP);
|
this.writePlayerData(par1EntityPlayerMP);
|
||||||
WorldServer var2 = par1EntityPlayerMP.getServerForPlayer();
|
WorldServer var2 = par1EntityPlayerMP.getServerForPlayer();
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,7 @@ public class WorldInfo
|
||||||
|
|
||||||
if (par1NBTTagCompound.hasKey("Player"))
|
if (par1NBTTagCompound.hasKey("Player"))
|
||||||
{
|
{
|
||||||
|
System.out.println("set player tag");
|
||||||
this.playerTag = par1NBTTagCompound.getCompoundTag("Player");
|
this.playerTag = par1NBTTagCompound.getCompoundTag("Player");
|
||||||
this.dimension = this.playerTag.getInteger("Dimension");
|
this.dimension = this.playerTag.getInteger("Dimension");
|
||||||
}
|
}
|
||||||
|
@ -325,6 +326,7 @@ public class WorldInfo
|
||||||
*/
|
*/
|
||||||
public NBTTagCompound getPlayerNBTTagCompound()
|
public NBTTagCompound getPlayerNBTTagCompound()
|
||||||
{
|
{
|
||||||
|
System.out.println("getting player data");
|
||||||
return this.playerTag;
|
return this.playerTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
||||||
|
|
||||||
public class ConfigConstants {
|
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 mainMenuString = "Eaglercraft " + version;
|
||||||
|
|
||||||
public static final String forkMe = "https://git.zelz.net/catfoolyou/Project164";
|
public static final String forkMe = "https://git.zelz.net/catfoolyou/Project164";
|
||||||
|
|
|
@ -15,7 +15,6 @@ public class GuiMainMenu extends GuiScreen {
|
||||||
|
|
||||||
/** The splash message. */
|
/** The splash message. */
|
||||||
public String splashText = null;
|
public String splashText = null;
|
||||||
private GuiButton buttonResetDemo;
|
|
||||||
|
|
||||||
private static boolean showingEndian = true;
|
private static boolean showingEndian = true;
|
||||||
private static final int showRandomItem;
|
private static final int showRandomItem;
|
||||||
|
@ -40,12 +39,8 @@ public class GuiMainMenu extends GuiScreen {
|
||||||
* background.
|
* background.
|
||||||
*/
|
*/
|
||||||
private static int viewportTexture = -1;
|
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 final Object field_104025_t = new Object();
|
||||||
private String field_92025_p;
|
private String field_92025_p;
|
||||||
private String field_104024_v;
|
|
||||||
|
|
||||||
/** An array of all the paths to the panorama pictures. */
|
/** 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") };
|
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") };
|
||||||
|
|
Loading…
Reference in New Issue