If I use a wand while aiming at a pet my server crashes.

Summary

I used my wand, but accidentally aimed at my pet while being mounted. This caused my server to crash. After the restart I basically tried to figure out what happened and noticed that everytime I use my wand while aiming towards the pet it will just crash the server.

Steps to reproduce

Aim wand at pet, use wand.

[Setup] Minecraft server version: 1.20.1 MCPets 4.1.0 ModelEngine 4.0.2 MythicMobs 5.4.1

Current behavior

It crashes my server.

Intended correct behavior

The wand should perform its action.

Server log file https://pastebin.com/R4zcicL0

Debug log snippet

I wrote a message starting with "Here" in the same pastebin: https://pastebin.com/R4zcicL0

Proposed fixes

I have no idea.

Edited by Zodra2