add physical check from initial properties
This commit is contained in:
parent
e57d6352c0
commit
6948bc2a94
5
api.lua
5
api.lua
|
@ -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'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue