XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix(webui): erroring on empty archon shard slot

ae832d01
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +4 -2
Modified static/webui/script.js +4 -2
@@ -477,8 +477,10 @@ function updateInventory() {
477 477
478 478 const uniqueUpgrades = {};
479 479 (item.ArchonCrystalUpgrades ?? []).forEach(upgrade => {
480 uniqueUpgrades[upgrade.UpgradeType] ??= 0;
481 uniqueUpgrades[upgrade.UpgradeType] += 1;
480 if (upgrade) {
481 uniqueUpgrades[upgrade.UpgradeType] ??= 0;
482 uniqueUpgrades[upgrade.UpgradeType] += 1;
483 }
482 484 });
483 485
484 486 document.getElementById("crystals-list").innerHTML = "";