diff --git a/public/js/buildings/wohnhaus.js b/public/js/buildings/wohnhaus.js index afbde44..b36f7af 100644 --- a/public/js/buildings/wohnhaus.js +++ b/public/js/buildings/wohnhaus.js @@ -37,17 +37,17 @@ async function loadInventory() { let html = ""; items.forEach((item) => { - const icon = item.icon || "/images/items/default.png"; - const name = item.name || "Unbekannt"; + const icon = item.icon ? item.icon : "/images/items/default.png"; + const name = item.name ? item.name : "Unbekannt"; html += ` -
${name}
-${name}
+