Bug report [Forge / Fabric]: Looking at player crash
Flemmli97 opened this issue ยท 1 comments
Describe the bug
The "looking at target" thing of an npc causes a crash.
Caused by https://github.com/samolego/Taterzens/blob/master/common/src/main/java/org/samo_lego/taterzens/npc/TaterzenNPC.java#L502
since the check doesn't cover an empty list properly.
Platform(s)
- Fabric
Environment(s)
- Server
Versions
- Minecraft 1.18.2
- Taterzens 1.8.5
To Reproduce
Steps to reproduce the behavior:
- Launch server
- Have an npc thats set to look at the nearest player
- Walk away
Expected behavior
No crash
Logs