make save true by default in yaml deserializer

This commit is contained in:
Pyrbu 2024-12-27 11:58:38 +01:00
parent b3b8635477
commit 55104b56f3

View file

@ -127,7 +127,7 @@ public class YamlSerializer implements NpcSerializer<YamlConfiguration> {
NpcEntryImpl entry = new NpcEntryImpl(config.getString("id"), npc); NpcEntryImpl entry = new NpcEntryImpl(config.getString("id"), npc);
entry.setProcessed(config.getBoolean("is-processed")); entry.setProcessed(config.getBoolean("is-processed"));
entry.setAllowCommandModification(config.getBoolean("allow-commands")); entry.setAllowCommandModification(config.getBoolean("allow-commands"));
entry.setSave(config.getBoolean("save")); entry.setSave(config.getBoolean("save", true));
return entry; return entry;
} }