Fixes a ClassCastException (#1)

This commit is contained in:
Markil3
2021-03-25 17:12:38 -06:00
parent 238d32a27a
commit a6b05ba15a

View File

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