From 88e36822d95ca2d6ef9ab361f11095aee1e132cc Mon Sep 17 00:00:00 2001 From: Cay Date: Fri, 13 Mar 2026 14:39:55 +0000 Subject: [PATCH] popup 7 --- public/js/buildings/wohnhaus.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/public/js/buildings/wohnhaus.js b/public/js/buildings/wohnhaus.js index fea0119..afbde44 100644 --- a/public/js/buildings/wohnhaus.js +++ b/public/js/buildings/wohnhaus.js @@ -37,14 +37,17 @@ async function loadInventory() { let html = ""; items.forEach((item) => { + const icon = item.icon || "/images/items/default.png"; + const name = item.name || "Unbekannt"; + html += ` -
- -

${item.name}

-
-`; +
+ +

${name}

+
+ `; }); document.getElementById("inventory").innerHTML = html;