Skip to content

Commit

Permalink
Fix wrong registry name creation for /npc create
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 23, 2023
1 parent b53955e commit 798ec1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/main/java/net/citizensnpcs/commands/NPCCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,8 @@ public void create(CommandContext args, CommandSender sender, NPC npc, @Flag("at
if (registryName != null) {
registry = CitizensAPI.getNamedNPCRegistry(registryName);
if (registry == null) {
registry = CitizensAPI.createNamedNPCRegistry(name, new MemoryNPCDataStore());
Messaging.send(sender, "An in-memory registry has been created named [[" + name + "]].");
registry = CitizensAPI.createNamedNPCRegistry(registryName, new MemoryNPCDataStore());
Messaging.send(sender, "An in-memory registry has been created named [[" + registryName + "]].");
}
}

Expand Down

0 comments on commit 798ec1c

Please sign in to comment.