This commit is contained in:
Vitaliy Olkhin 2024-10-30 11:39:02 +05:00
parent 49c523762c
commit 76fa8ccef3
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -1,2 +1,3 @@
name=respawn_patch
description = Test patch to solve the respawn issue
author = VinAdmin volkhin@texnoblog.uz