Skip to content

Commit

Permalink
change storeNPCs method used for save_citizens
Browse files Browse the repository at this point in the history
Citizens update changed the underlying method
  • Loading branch information
mcmonkey4eva committed Jul 27, 2022
1 parent ce600cd commit 04e6689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -3151,8 +3151,10 @@ public void adjust(Mechanism mechanism) {
// @object EntityTag
// @name time_lived
// @input DurationTag
// @synonyms EntityTag.age_nbt,EntityTag.time_nbt
// @description
// Sets the amount of time this entity has lived for.
// For entities that automatically despawn such as dropped_items or falling_blocks, it can be useful to set this value to "-2147483648t" (the minimum valid number of ticks) to cause it to persist indefinitely.
// @tags
// <EntityTag.time_lived>
// -->
Expand Down
Expand Up @@ -32,7 +32,6 @@
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import net.citizensnpcs.Citizens;
import net.citizensnpcs.api.CitizensAPI;
import net.citizensnpcs.api.command.CommandContext;
import net.citizensnpcs.api.npc.NPC;
import net.citizensnpcs.api.npc.NPCRegistry;
import net.citizensnpcs.api.trait.TraitInfo;
Expand Down Expand Up @@ -2571,7 +2570,7 @@ public static void adjustServer(Mechanism mechanism) {
// Immediately saves the Citizens saves files.
// -->
if (Depends.citizens != null && mechanism.matches("save_citizens")) {
Depends.citizens.storeNPCs(new CommandContext(new String[0]));
Depends.citizens.storeNPCs();
}

// <--[mechanism]
Expand Down

0 comments on commit 04e6689

Please sign in to comment.