mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-12 06:34:16 +00:00
chore: format everything
This commit is contained in:
@@ -602,10 +602,12 @@ bool Inventory::stillValid(std::shared_ptr<Player> player) {
|
||||
|
||||
bool Inventory::contains(std::shared_ptr<ItemInstance> itemInstance) {
|
||||
for (unsigned int i = 0; i < armor.length; i++) {
|
||||
if (armor[i] != nullptr && armor[i]->sameItem(itemInstance)) return true;
|
||||
if (armor[i] != nullptr && armor[i]->sameItem(itemInstance))
|
||||
return true;
|
||||
}
|
||||
for (unsigned int i = 0; i < items.length; i++) {
|
||||
if (items[i] != nullptr && items[i]->sameItem(itemInstance)) return true;
|
||||
if (items[i] != nullptr && items[i]->sameItem(itemInstance))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user