Fix copypasta issue in /npc metadata set

This commit is contained in:
fullwall 2023-05-24 23:28:05 +08:00
parent ee77512185
commit 5dc627ab49

View File

@ -1571,7 +1571,7 @@ public class NPCCommands {
}
} else {
if (enumKey != null) {
npc.data().set(enumKey, metadata);
npc.data().setPersistent(enumKey, metadata);
} else {
npc.data().setPersistent(key, metadata);
}