Fixes a ClassCastException (#1)

This commit is contained in:
Markil3
2021-03-25 17:11:44 -06:00
parent be64f84832
commit b2329a34a9

View File

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