bug fixes

This commit is contained in:
landgreen
2020-08-10 05:27:33 -07:00
parent 0c4caa186a
commit e09a661953
2 changed files with 3 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ const build = {
for (let i = 0, len = mod.mods.length; i < len; i++) {
const modID = document.getElementById("mod-" + i)
if (mod.mods[i].allowed()) {
if (mod.mods[i].allowed() || isAllowed) {
if (mod.mods[i].count > 1) {
modID.innerHTML = `<div class="grid-title"><div class="circle-grid mod"></div> &nbsp; ${mod.mods[i].name} (${mod.mods[i].count}x)</div>${mod.mods[i].description}</div>`
} else {
@@ -267,7 +267,7 @@ const build = {
modID.classList.add("build-grid-disabled");
modID.onclick = null
}
if (mod.mods[i].count > 0 && !isAllowed) {
if (mod.mods[i].count > 0) {
mod.removeMod(i)
}
if (modID.classList.contains("build-mod-selected")) {