This commit is contained in:
Vitaliy Olkhin 2024-10-24 12:29:02 +05:00
commit 49c523762c
2 changed files with 10 additions and 0 deletions

8
init.lua Normal file
View File

@ -0,0 +1,8 @@
minetest.register_on_respawnplayer(function(player)
if player:get_hp() == 0 then
local name = player:get_player_name()
player:set_hp(20)
minetest.log("action", "respawn_patch: " .. name .. " restoration of life")
minetest.chat_send_all(dump(player:get_hp()))
end
end)

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name=respawn_patch
description = Test patch to solve the respawn issue