Fixed an error
This commit is contained in:
parent
40f322c9ee
commit
c90e63d4c7
@ -227,6 +227,7 @@ local function default_on_step(
|
||||
if self.timer > 0.1 then
|
||||
self.timer = 0
|
||||
for _,obj in ipairs(objects) do
|
||||
if obj:get_luaentity() then
|
||||
if (obj:get_entity_name() ~= self.object:get_luaentity().name) and (obj:get_luaentity().name ~= "__builtin:item") then
|
||||
if obj:is_player() then
|
||||
obj:set_hp(obj:get_hp()-damage)
|
||||
@ -238,6 +239,7 @@ local function default_on_step(
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local n = minetest.env:get_node(pos).name
|
||||
if n==not_transparent or minetest.get_item_group(n, not_transparent)==1 then
|
||||
|
Loading…
x
Reference in New Issue
Block a user