add proper container and do some syncy stuff and save

This commit is contained in:
2026-05-07 00:30:08 +02:00
parent 42331390e7
commit 21493fec04
5 changed files with 165 additions and 10 deletions

View File

@@ -193,11 +193,6 @@ abstract class GenericContainerScreen<T: GenericContainerMenu>(menu: T, inventor
for (widget in widgets) {
if (widget.mouseClicked(mouseX-imageX, mouseY-imageY, button)) return true
}
for (slot in menu.slots) { // TODO: this solution sucks, make this less ass
if (slot is GuiEventListener) {
slot.mouseClicked(mouseX-imageX, mouseY-imageY, button)
}
}
return false
}