mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 09:36:27 -04:00
TNT damages now uses apply_damage
This commit is contained in:
parent
a192f9fc78
commit
594b0f32a1
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ local function entity_physics(pos, radius)
|
|||
end
|
||||
|
||||
local damage = (4 / dist) * radius
|
||||
obj:set_hp(obj:get_hp() - damage)
|
||||
obj:apply_damage(damage)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue