fix:对决-对抗点换边等按钮会重复ui.create.system加右上角按钮

This commit is contained in:
lieren2023 2024-05-10 23:34:25 +08:00 committed by GitHub
parent 7af34d8f66
commit d4455d3f40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1799,7 +1799,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
lib.storage.ladder.current = 900; lib.storage.ladder.current = 900;
game.save("ladder", lib.storage.ladder); game.save("ladder", lib.storage.ladder);
} }
ui.ladder = ui.create.system( if(!ui.ladder) ui.ladder = ui.create.system(
game.getLadderName(lib.storage.ladder.current), game.getLadderName(lib.storage.ladder.current),
null, null,
true true