mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Use cactus damage type
This commit is contained in:
parent
d0ddd38d4e
commit
e74838136d
@ -456,7 +456,7 @@ minetest.register_globalstep(function(dtime)
|
||||
if dist < 1.1 or dist_feet < 1.1 then
|
||||
if player:get_hp() > 0 then
|
||||
mcl_death_messages.player_damage(player, S("@1 was prickled to death by a cactus.", name))
|
||||
player:set_hp(player:get_hp() - 1, { type = "punch", from = "mod" })
|
||||
player:set_hp(player:get_hp() - 1, { _mcl_type = "cactus" })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user