Fixed server crash error

This commit is contained in:
Vitaliy Olkhin 2024-12-08 22:47:42 +05:00
parent 19f8699bbb
commit 5aae174e02

View File

@ -127,13 +127,6 @@ mobs:register_mob("tankzombie:tankzombie", {
})
-- ADICIONANDO ATAQUE QUE MUDA O POSIÇÃO
minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir)
if hitter:get_luaentity().name == "tankzombie:tankzombie" then
player:set_pos({x=player:get_pos().x+5,y=player:get_pos().y+5,z=player:get_pos().z})
end
end)