multiple client sync update

This commit is contained in:
Azanor committed 2014-05-06 07:34:45 +02:00
1 parent 4ac84fbbd4
commit d788b1b697
6 files changed
+12 -39

No files matched your search

@@ -100,34 +100,6 @@ public class PlayerHandler {
playerBaubles.put(player.getCommandSenderName(), inventory);
if (save) savePlayerBaubles(player);
}
// if (file1 == null || !file1.exists())
// {
// Baubles.log.warn("Baubles inventory not found for "+player.getCommandSenderName()+". Trying to load backup baubles data.");
// file1 = getBackupFileFromPlayer(player);
// }
// if (file1 != null && file1.exists())
// {
// FileInputStream fileinputstream = new FileInputStream(file1);
// NBTTagCompound data = CompressedStreamTools.readCompressed(fileinputstream);
// fileinputstream.close();
//
// InventoryBaubles inventory = new InventoryBaubles(player);
// inventory.readNBT(data);
// playerBaubles.put(player.getCommandSenderName(), inventory);
//
// } else { //legacy data
// Baubles.log.warn("Baubles inventory not found for "+player.getCommandSenderName()+". Trying to load legacy baubles data.");
// NBTTagCompound data = player.getEntityData();
// if (!data.hasKey("Baubles")) {
// data.setTag("Baubles", new NBTTagCompound());
// }
// InventoryBaubles inventory = new InventoryBaubles(player);
// inventory.readNBT(player);
// playerBaubles.put(player.getCommandSenderName(), inventory);
// savePlayerBaubles(player);
// }
}
catch (Exception exception1)
{