Taterzens [Fabric]

Taterzens [Fabric]

86.3k Downloads

Bug report [Forge / Fabric]: Looking at player crash

Flemmli97 opened this issue ยท 1 comments

commented

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:

  1. Launch server
  2. Have an npc thats set to look at the nearest player
  3. Walk away

Expected behavior
No crash

Logs

https://pastebin.com/w5UzjUhE

commented

Thanks for reporting!