Implement cbarber's player data glitch and online/offline event changes

This commit is contained in:
ShadowRanger
2016-04-12 14:25:09 +10:00
parent 99a7359be3
commit c7f38adb3f
5 changed files with 24 additions and 11 deletions

View File

@@ -51,7 +51,6 @@ public class SpecialEnderChest extends InventorySubcontainer {
private void saveOnExit() {
if (transaction.isEmpty() && !playerOnline) {
owner.saveData();
OpenInv.enderChests.remove(owner.getUniqueId());
}
}
@@ -82,6 +81,7 @@ public class SpecialEnderChest extends InventorySubcontainer {
public void onClose(CraftHumanEntity who) {
super.onClose(who);
saveOnExit();
OpenInv.enderChests.remove(owner.getUniqueId());
}
@Override