small dedi fix
This commit is contained in:
parent
798053dd14
commit
745f930f0c
@ -555,6 +555,10 @@ class Dedimania implements CallbackListener, TimerListener, Plugin {
|
|||||||
// Loop through existing records
|
// Loop through existing records
|
||||||
foreach($this->dedimaniaData->records as $key => &$record) {
|
foreach($this->dedimaniaData->records as $key => &$record) {
|
||||||
/** @var RecordData $record */
|
/** @var RecordData $record */
|
||||||
|
if ($record->rank > $maxRank) {
|
||||||
|
// Max rank reached
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if ($record->login === $newRecord->login) {
|
if ($record->login === $newRecord->login) {
|
||||||
// Old record of the same player
|
// Old record of the same player
|
||||||
if ($record->best <= $newRecord->best) {
|
if ($record->best <= $newRecord->best) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user