diff --git a/public/js/buildings/wohnhaus.js b/public/js/buildings/wohnhaus.js index 0b50df9..2f88e48 100644 --- a/public/js/buildings/wohnhaus.js +++ b/public/js/buildings/wohnhaus.js @@ -77,17 +77,19 @@ async function loadEquipment() { const equipment = await res.json(); equipment.forEach((item) => { + if (!item.item_id) return; // ← WICHTIG + const slot = document.querySelector('.slot[data-slot="' + item.slot + '"]'); if (!slot) return; const label = slot.querySelector(".slot-label"); slot.innerHTML = ` - -`; + + `; if (label) slot.appendChild(label);