mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-10-02 23:57:32 +02:00
Auto Save
This commit is contained in:
parent
6a9cd9db1c
commit
7206504258
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user