Fixes a ClassCastException (#1).

This commit is contained in:
Markil3
2021-03-25 17:09:03 -06:00
parent d2252917b6
commit 6daf696e01

View File

@@ -488,7 +488,7 @@ public class TimerUtils
LivingEntity mount;
boolean changed = false;
if (tmp == null)
if (tmp == null || !(tmp instanceof LivingEntity))
{
mountHealth = -1;
mountMaxHealth = -1;