From 6948bc2a94647217a51d81e9c30697aadcade445 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Tue, 27 Feb 2024 08:53:07 -0500 Subject: [PATCH] add physical check from initial properties --- api.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 3c6de5c..8238368 100644 --- a/api.lua +++ b/api.lua @@ -1152,7 +1152,10 @@ function XBowsEntityDef.on_step(self, selfObj, dtime) ) or ( 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' ) )