mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-27 21:21:02 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -288,11 +288,11 @@ int EnchantmentHelper::getEnchantmentCost(Random *random, int slot, int bookcase
|
||||
int selected = random->nextInt(8) + 1 + (bookcases >> 1) + random->nextInt(bookcases + 1);
|
||||
if (slot == 0)
|
||||
{
|
||||
return max((selected / 3), 1);
|
||||
return std::max((selected / 3), 1);
|
||||
}
|
||||
if (slot == 1)
|
||||
{
|
||||
return max(selected, bookcases * 2);
|
||||
return std::max(selected, bookcases * 2);
|
||||
}
|
||||
return selected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user