mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-04 23:31:05 +01:00
Implement in_wall damage type
This commit is contained in:
parent
4e37cc114c
commit
a3af1cdf6e
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ minetest.register_globalstep(function(dtime)
|
|||
and (not check_player_privs(name, {noclip = true})) then
|
||||
if player:get_hp() > 0 then
|
||||
mcl_death_messages.player_damage(player, S("@1 suffocated to death.", name))
|
||||
player:set_hp(player:get_hp() - 1)
|
||||
mcl_util.deal_damage(player, 1, {type = "in_wall"})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue