This commit is contained in:
Cay 2026-03-13 19:03:09 +00:00
parent c7d4a5c4a3
commit bfd5c02d82

View File

@ -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 = `
<img src="${item.icon}"
draggable="true"
data-id="${item.item_id}"
data-level="${item.item_level_id}">
`;
<img src="${item.icon}"
draggable="true"
data-id="${item.item_id}"
data-level="${item.item_level_id}">
`;
if (label) slot.appendChild(label);