diff --git a/.gitignore b/.gitignore index 47009d1..851e04e 100644 --- a/.gitignore +++ b/.gitignore @@ -125,7 +125,4 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* -json/logs.json -json/logs.json -json/logs.json -json/logs.json +json/logs.json \ No newline at end of file diff --git a/public/index.html b/public/index.html index 546bd58..97bdff4 100644 --- a/public/index.html +++ b/public/index.html @@ -436,6 +436,7 @@ // Склад const warehouseDiv = document.getElementById("warehouse"); + if (warehouse.maxMaterials != 0) { warehouseDiv.innerHTML = ""; const resources = ['wood', 'coal', 'oil', 'metall', 'gold', 'diamond']; resources.forEach(res => { @@ -449,6 +450,7 @@ const progressBar = document.createElement("div"); progressBar.innerHTML = `
`; warehouseDiv.appendChild(progressBar); + } }) .catch(err => { console.error("Ошибка загрузки данных:", err);