Added some protection for stacker and offline players.
This commit is contained in:
parent
750b960b46
commit
faf6834e23
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user