Skip to content

Commit

Permalink
Rename command: don't respawn NPC anymore
Browse files Browse the repository at this point in the history
used to be required, now is buggy to do apparently
  • Loading branch information
mcmonkey4eva committed Feb 16, 2023
1 parent 8fbfd01 commit a628bc9
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -215,15 +215,7 @@ public void execute(final ScriptEntry scriptEntry) {
}
if (entity instanceof NPCTag) {
NPC npc = ((NPCTag) entity).getCitizen();
if (npc.isSpawned()) {
Location prev = npc.getStoredLocation().clone();
npc.despawn(DespawnReason.PENDING_RESPAWN);
npc.setName(nameString);
npc.spawn(prev);
}
else {
npc.setName(nameString);
}
npc.setName(nameString);
}
else if (entity instanceof PlayerTag) {
if (listNameOnly != null && listNameOnly.asBoolean()) {
Expand Down

0 comments on commit a628bc9

Please sign in to comment.