Make filter-injector work with latest chest versions

This commit is contained in:
Thomas--S 2017-03-07 17:40:22 +01:00 committed by Vanessa Ezekowitz
parent a858145098
commit 3d845a3f28

View File

@ -167,6 +167,7 @@ local function punch_filter(data, filtpos, filtnode, msg)
local fakePlayer = { local fakePlayer = {
get_player_name = delay(owner), get_player_name = delay(owner),
is_fake_player = ":pipeworks", is_fake_player = ":pipeworks",
get_wielded_item = delay(ItemStack(nil))
} -- TODO: use a mechanism as the wielder one } -- TODO: use a mechanism as the wielder one
local dir = minetest.facedir_to_right_dir(filtnode.param2) local dir = minetest.facedir_to_right_dir(filtnode.param2)
local frompos = vector.subtract(filtpos, dir) local frompos = vector.subtract(filtpos, dir)