mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-29 23:43:42 +01:00
Prevent armor damage when using /killme command
This commit is contained in:
parent
98786fd8f7
commit
65b6d58580
@ -640,7 +640,7 @@ minetest.register_chatcommand("killme", {
|
|||||||
func = function(name)
|
func = function(name)
|
||||||
local player = minetest.get_player_by_name(name)
|
local player = minetest.get_player_by_name(name)
|
||||||
if player then
|
if player then
|
||||||
player:set_hp(0)
|
player:set_hp(-1001)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user