chore: format everything

This commit is contained in:
Tropical
2026-03-30 02:13:59 -05:00
parent 470ddf959d
commit c9b90cae2c
463 changed files with 12748 additions and 11285 deletions

View File

@@ -42,8 +42,8 @@ void AbstractContainerMenu::addSlotListener(ContainerListener* listener) {
}
void AbstractContainerMenu::removeSlotListener(ContainerListener* listener) {
auto it = find(containerListeners.begin(), containerListeners.end(),
listener);
auto it =
find(containerListeners.begin(), containerListeners.end(), listener);
if (it != containerListeners.end()) containerListeners.erase(it);
}
@@ -367,8 +367,9 @@ std::shared_ptr<ItemInstance> AbstractContainerMenu::clicked(
if (slot->mayPickup(player)) {
std::shared_ptr<ItemInstance> current =
inventory->getItem(buttonNum);
bool canMove = current == nullptr || (slot->container == inventory &&
slot->mayPlace(current));
bool canMove =
current == nullptr ||
(slot->container == inventory && slot->mayPlace(current));
int freeSlot = -1;
if (!canMove) {