pop38
This commit is contained in:
parent
9bd68f6e53
commit
ed4e488ce8
@ -392,8 +392,6 @@ body {
|
||||
padding: 10px;
|
||||
|
||||
max-height: 340px;
|
||||
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
#inventory-wrapper {
|
||||
@ -402,8 +400,6 @@ body {
|
||||
margin: 0 auto;
|
||||
|
||||
max-height: 340px;
|
||||
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.inventory-slot {
|
||||
|
||||
@ -202,7 +202,15 @@ function initDrop() {
|
||||
|
||||
icon = inventoryItem.querySelector("img").src;
|
||||
|
||||
inventoryItem.remove();
|
||||
/* Slot leeren statt löschen */
|
||||
|
||||
inventoryItem.classList.add("empty");
|
||||
|
||||
inventoryItem.removeAttribute("data-id");
|
||||
inventoryItem.removeAttribute("data-level");
|
||||
inventoryItem.removeAttribute("data-slot");
|
||||
|
||||
inventoryItem.innerHTML = "";
|
||||
} else {
|
||||
const slotItem = document.querySelector(
|
||||
'.slot[data-slot="' + itemSlot + '"] img',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user