Null-checks on KarmaGauge
This commit is contained in:
parent
5956bb292d
commit
bd90714ed3
@ -314,8 +314,10 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
|
|||||||
20,
|
20,
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
$mapFrame->addChild($karmaGauge);
|
if ($karmaGauge) {
|
||||||
$karmaGauge->setX($posX + 87);
|
$mapFrame->addChild($karmaGauge);
|
||||||
|
$karmaGauge->setX($posX + 87);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$posY -= 4;
|
$posY -= 4;
|
||||||
|
@ -926,8 +926,10 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin {
|
|||||||
0.95*$width,
|
0.95*$width,
|
||||||
0.95*$height
|
0.95*$height
|
||||||
);
|
);
|
||||||
$karmaGauge->setY(-0.15*$height);
|
if ($karmaGauge) {
|
||||||
$frame->addChild($karmaGauge);
|
$frame->addChild($karmaGauge);
|
||||||
|
$karmaGauge->setY(-0.15*$height);
|
||||||
|
}
|
||||||
|
|
||||||
$this->maniaControl->getManialinkManager()->sendManialink($manialink);
|
$this->maniaControl->getManialinkManager()->sendManialink($manialink);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user