Added some protection for stacker and offline players.

This commit is contained in:
Jonathan Williams 2016-03-20 16:27:59 -05:00
parent 750b960b46
commit faf6834e23

View File

@ -257,7 +257,12 @@ public class StackerManager extends MiniPlugin implements IThrown
{
public void run()
{
fThrower.setPassenger(fThroweeStack);
if ((fThrower instanceof Player && !((Player)fThrower).isOnline())
|| (fThroweeStack instanceof Player && !((Player)fThroweeStack).isOnline()))
{
fThrower.setPassenger(fThroweeStack);
}
_tempStackShift.remove(fThroweeStack);
}
}, 2);