summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter-injector.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter-injector.lua b/filter-injector.lua
index 6f3271f..72f7bad 100644
--- a/filter-injector.lua
+++ b/filter-injector.lua
@@ -167,6 +167,7 @@ local function punch_filter(data, filtpos, filtnode, msg)
local fakePlayer = {
get_player_name = delay(owner),
is_fake_player = ":pipeworks",
+ get_wielded_item = delay(ItemStack(nil))
} -- TODO: use a mechanism as the wielder one
local dir = minetest.facedir_to_right_dir(filtnode.param2)
local frompos = vector.subtract(filtpos, dir)