FancyInnovations / FancyInnovations/FancyPlugins
Bug: Custom model NPCs spawn facing backwards (180° flipped) after server restart
- Dominant language
- Java
- Stars
- 88
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
### In which plugin has the error occurred?
Other
### What happened?
### Bug Description
When creating an NPC using **FancyNpcsCustomModels**, the NPC functions and faces the correct direction initially. However, after restarting the server, the custom model NPCs spawn facing the complete opposite direction (rotated 180 degrees).
Running `/fancynpc reload` immediately fixes the issue and snaps the NPCs back to their correct rotation configured in the files.
### Steps to Reproduce
1. Create a custom model NPC and configure its rotation.
2. Restart the Minecraft server.
3. Observe the NPC upon joining (it will be facing backwards / 180° flipped).
4. Run `/fancynpc reload`.
5. The NPC snaps back to the correct facing direction.
### Expected Behavior
NPCs should retain their saved rotation facing direction immediately after a server restart without requiring a manual `/fancynpc reload`.
### Actual Behavior
NPCs ignore the saved rotation on boot/startup and spawn facing the opposite direction until reloaded.
### Environment & Additional Info
* **Addon:** FancyNpcsCustomModels (https://modrinth.com/plugin/fancynpcscustommodels)
* **Base Plugin:** FancyNpcs
### In which software has the error occurred?
Paper
### Plugin version
1.1.0+10
### Server version
26.1.2
### Relevant log output
```shell
```
Contributor guide
Research direction
Start by reproducing the startup behavior with FancyNpcsCustomModels 1.1.0+10 on Paper 26.1.2, then compare how FancyNpcs loads saved rotation during server startup with the behavior of `/fancynpc reload`. Done means a custom model NPC uses its configured facing direction immediately after a server restart, without requiring a reload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100