diff --git a/src/main/java/mchorse/mappet/commands/npc/CommandNpcState.java b/src/main/java/mchorse/mappet/commands/npc/CommandNpcState.java index 492ecf52..bcabbde7 100644 --- a/src/main/java/mchorse/mappet/commands/npc/CommandNpcState.java +++ b/src/main/java/mchorse/mappet/commands/npc/CommandNpcState.java @@ -68,6 +68,7 @@ public void executeCommand(MinecraftServer server, ICommandSender sender, String state.deserializeNBT(original); } + state.id = entity.getId(); entity.setState(state, true); } } \ No newline at end of file