Auto Save

This commit is contained in:
Brianna O'Keefe 2018-10-06 13:48:39 -04:00
parent 6a9cd9db1c
commit 7206504258

View File

@ -322,7 +322,7 @@ public class InventoryListeners implements Listener {
KitEditorPlayerData kitPlayerData = instance.getKitEditor().getDataFor(player);
if (instance.getBlockEditor().getDataFor(player).getEditorType() != BlockEditorPlayerData.EditorType.NOTIN) {
if (kitPlayerData.getEditorType() == KitEditorPlayerData.EditorType.OVERVIEW) {
KitEditor edit = instance.getKitEditor();
edit.saveKit(player, player.getOpenInventory().getTopInventory());
}