Fix wrong registry name creation for /npc create

This commit is contained in:
fullwall 2023-04-23 16:38:12 +08:00
parent b53955ebb2
commit 798ec1c3aa

View File

@ -684,8 +684,8 @@ public class NPCCommands {
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 + "]].");
}
}