Fix `item_throw` entity detection

master
MoNTE48 2020-03-23 21:01:54 +01:00
parent 232904ed1c
commit 61fc60c562
1 changed files with 4 additions and 1 deletions

View File

@ -459,10 +459,13 @@ local function item_throw_step(entity, dtime)
local name = obj:get_player_name()
if name ~= entity.thrower then
hit_object = obj
break
end
elseif obj:get_luaentity() ~= nil and
obj:get_luaentity().name ~= entity.name then
obj:get_luaentity().name ~= "__builtin:throwing_item" and
obj:get_luaentity().name ~= "__builtin:item" then
hit_object = obj
break
end
end
if hit_object or node_pos then