mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-27 13:54:39 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -159,7 +159,7 @@ void FallingTile::causeFallDamage(float distance)
|
||||
//for (Entity entity : entities)
|
||||
for(AUTO_VAR(it,entities->begin()); it != entities->end(); ++it)
|
||||
{
|
||||
(*it)->hurt(source, min(Mth::floor(dmg * fallDamageAmount), fallDamageMax));
|
||||
(*it)->hurt(source, std::min(Mth::floor(dmg * fallDamageAmount), fallDamageMax));
|
||||
}
|
||||
if (tile == Tile::anvil_Id && random->nextFloat() < 0.05f + (dmg * 0.05))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user