summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2017-03-07 17:40:22 +0100
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-17 10:07:34 -0400
commit3d845a3f2869111ef0eff109ff210f1b03a532f3 (patch)
tree953da52ca418af7efabb387355ee5d9ba4e72ad2
parenta8581450988821bbfba13bf365ada04ce9218c69 (diff)
downloadpipeworks-3d845a3f2869111ef0eff109ff210f1b03a532f3.tar
pipeworks-3d845a3f2869111ef0eff109ff210f1b03a532f3.tar.gz
pipeworks-3d845a3f2869111ef0eff109ff210f1b03a532f3.tar.bz2
pipeworks-3d845a3f2869111ef0eff109ff210f1b03a532f3.tar.xz
pipeworks-3d845a3f2869111ef0eff109ff210f1b03a532f3.zip
Make filter-injector work with latest chest versions
-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)