fixed possible NPE

This commit is contained in:
Mini-Chiss 2015-08-02 12:35:25 +02:00
parent 638406254b
commit 8ea967b37e

View File

@ -54,7 +54,7 @@ public class UtilAction
ent.setFallDistance(0);
//Store It!
if (ent instanceof Player)
if (ent instanceof Player && _velocityFix != null)
{
_velocityFix.setPlayerVelocity(((Player)ent), vec);
}
@ -68,7 +68,7 @@ public class UtilAction
ent.setFallDistance(0);
//Store It!
if (ent instanceof Player)
if (ent instanceof Player && _velocityFix != null)
{
_velocityFix.setPlayerVelocity(((Player)ent), vec);
}