remove check_for_death calls (not required)
This commit is contained in:
parent
03078c29da
commit
911ff0dac2
@ -841,7 +841,7 @@ minetest.register_tool("nssm:axe_of_pride", {
|
|||||||
if (obj:get_luaentity().health) then
|
if (obj:get_luaentity().health) then
|
||||||
--minetest.chat_send_all("Entity")
|
--minetest.chat_send_all("Entity")
|
||||||
obj:get_luaentity().health = obj:get_luaentity().health -10
|
obj:get_luaentity().health = obj:get_luaentity().health -10
|
||||||
check_for_death(obj:get_luaentity())
|
-- check_for_death(obj:get_luaentity())
|
||||||
|
|
||||||
dropper:set_hp(dropper:get_hp()+10)
|
dropper:set_hp(dropper:get_hp()+10)
|
||||||
--flag = 1
|
--flag = 1
|
||||||
@ -1167,7 +1167,7 @@ minetest.register_tool("nssm:sword_of_envy", {
|
|||||||
else
|
else
|
||||||
dropper:set_hp(hpp)
|
dropper:set_hp(hpp)
|
||||||
end
|
end
|
||||||
check_for_death(obj:get_luaentity())
|
-- check_for_death(obj:get_luaentity())
|
||||||
flag = 1
|
flag = 1
|
||||||
|
|
||||||
local items = player_inv:get_stack('main', found)
|
local items = player_inv:get_stack('main', found)
|
||||||
@ -1305,7 +1305,7 @@ minetest.register_tool("nssm:death_scythe", {
|
|||||||
else
|
else
|
||||||
if (obj:get_luaentity().health) then
|
if (obj:get_luaentity().health) then
|
||||||
obj:get_luaentity().health = obj:get_luaentity().health -40
|
obj:get_luaentity().health = obj:get_luaentity().health -40
|
||||||
check_for_death(obj:get_luaentity())
|
-- check_for_death(obj:get_luaentity())
|
||||||
flag = 1
|
flag = 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user