From 48e2e4e5cde4c1c537b53d143ebb35093e85b204 Mon Sep 17 00:00:00 2001 From: Cay Date: Fri, 13 Mar 2026 17:03:09 +0000 Subject: [PATCH] pop24 --- public/js/buildings/wohnhaus.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/public/js/buildings/wohnhaus.js b/public/js/buildings/wohnhaus.js index 8ac89e9..47a8f45 100644 --- a/public/js/buildings/wohnhaus.js +++ b/public/js/buildings/wohnhaus.js @@ -66,13 +66,17 @@ async function loadEquipment() { const equipment = await res.json(); equipment.forEach((item) => { - const slot = document.querySelector( - '.equip-slot[data-slot="' + item.slot + '"]', - ); + 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); + } }); } @@ -178,8 +182,14 @@ function initDrop() { '.inventory-slot[data-id="' + itemId + '"] img', ).src; + const label = slot.querySelector(".slot-label"); + slot.innerHTML = ``; + if (label) { + slot.appendChild(label); + } + saveEquipment(targetSlot, itemId, itemLevel); }); });