Skip to content

Commit

Permalink
Fix NPC ID is disappearing upon changing NPC state with "/mp npc stat…
Browse files Browse the repository at this point in the history
…e" command
  • Loading branch information
mchorse committed Nov 18, 2021
1 parent 7e8635a commit 48e1bd0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void executeCommand(MinecraftServer server, ICommandSender sender, String
state.deserializeNBT(original);
}

state.id = entity.getId();
entity.setState(state, true);
}
}

0 comments on commit 48e1bd0

Please sign in to comment.