mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 09:36:27 -04:00
TNT damages now uses apply_damages
This permit to do damages only if enable_damage parameter is set. Require: https://github.com/minetest/minetest/pull/2511
This commit is contained in:
parent
a192f9fc78
commit
016293f912
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_damages(damage)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue