mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 18:35:32 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -158,8 +158,8 @@ bool ItemEntity::merge(std::shared_ptr<ItemEntity> target)
|
||||
if (targetItem->count + myItem->count > targetItem->getMaxStackSize()) return false;
|
||||
|
||||
targetItem->count += myItem->count;
|
||||
target->throwTime = max(target->throwTime, this->throwTime);
|
||||
target->age = min(target->age, this->age);
|
||||
target->throwTime = std::max(target->throwTime, this->throwTime);
|
||||
target->age = std::min(target->age, this->age);
|
||||
target->setItem(targetItem);
|
||||
remove();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user