add physical check from initial properties

This commit is contained in:
Juraj Vajda 2024-02-27 08:53:07 -05:00
parent e57d6352c0
commit 6948bc2a94

View File

@ -1152,7 +1152,10 @@ function XBowsEntityDef.on_step(self, selfObj, dtime)
) )
or ( or (
pointed_thing.ref:get_luaentity() pointed_thing.ref:get_luaentity()
-- and pointed_thing.ref:get_luaentity().physical and (
pointed_thing.ref:get_luaentity().physical
or pointed_thing.ref:get_properties().physical
)
and pointed_thing.ref:get_luaentity().name ~= '__builtin:item' and pointed_thing.ref:get_luaentity().name ~= '__builtin:item'
) )
) )