fixed possible NPE
This commit is contained in:
parent
638406254b
commit
8ea967b37e
@ -54,7 +54,7 @@ public class UtilAction
|
|||||||
ent.setFallDistance(0);
|
ent.setFallDistance(0);
|
||||||
|
|
||||||
//Store It!
|
//Store It!
|
||||||
if (ent instanceof Player)
|
if (ent instanceof Player && _velocityFix != null)
|
||||||
{
|
{
|
||||||
_velocityFix.setPlayerVelocity(((Player)ent), vec);
|
_velocityFix.setPlayerVelocity(((Player)ent), vec);
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ public class UtilAction
|
|||||||
ent.setFallDistance(0);
|
ent.setFallDistance(0);
|
||||||
|
|
||||||
//Store It!
|
//Store It!
|
||||||
if (ent instanceof Player)
|
if (ent instanceof Player && _velocityFix != null)
|
||||||
{
|
{
|
||||||
_velocityFix.setPlayerVelocity(((Player)ent), vec);
|
_velocityFix.setPlayerVelocity(((Player)ent), vec);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user