fix: misleading indentation on BAG_UPDATE/UNIT_INVENTORY_CHANGED emits

The two emit calls were indented 12 spaces (suggesting a nested block)
instead of 8 (matching the enclosing if). Same class of maintenance
trap as the PLAYER_ALIVE/PLAYER_UNGHOST fix in b3abf04d.
This commit is contained in:
Kelsi 2026-03-29 19:31:29 -07:00
parent 061a21da8f
commit e5b4e86600

View file

@ -1228,8 +1228,8 @@ void EntityController::updateItemOnValuesUpdate(const UpdateBlock& block,
}
if (inventoryChanged) {
owner_.rebuildOnlineInventory();
pendingEvents_.emit("BAG_UPDATE", {});
pendingEvents_.emit("UNIT_INVENTORY_CHANGED", {"player"});
pendingEvents_.emit("BAG_UPDATE", {});
pendingEvents_.emit("UNIT_INVENTORY_CHANGED", {"player"});
}
}