summaryrefslogtreecommitdiff
path: root/filter-injector.lua
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-10-10 05:44:42 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2015-10-10 05:44:42 +0200
commitfca10f613d2eb30901ce347eb45cd59aafb5d4b0 (patch)
treeea2da81102692d407286c9492f55410976713f43 /filter-injector.lua
parentaf2c3778feb73ced41c63e3fb8e6bfafdde03bf9 (diff)
downloadpipeworks-fca10f613d2eb30901ce347eb45cd59aafb5d4b0.tar
pipeworks-fca10f613d2eb30901ce347eb45cd59aafb5d4b0.tar.gz
pipeworks-fca10f613d2eb30901ce347eb45cd59aafb5d4b0.tar.bz2
pipeworks-fca10f613d2eb30901ce347eb45cd59aafb5d4b0.tar.xz
pipeworks-fca10f613d2eb30901ce347eb45cd59aafb5d4b0.zip
added is_fake_player entry to the fake player table passed on to allow_metadata_* functions
Diffstat (limited to 'filter-injector.lua')
-rw-r--r--filter-injector.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter-injector.lua b/filter-injector.lua
index 620b7b3..bcfcbc9 100644
--- a/filter-injector.lua
+++ b/filter-injector.lua
@@ -109,6 +109,7 @@ local function punch_filter(data, filtpos, filtnode)
local owner = filtmeta:get_string("owner")
local fakePlayer = {
get_player_name = delay(owner),
+ is_fake_player = ":pipeworks",
} -- TODO: use a mechanism as the wielder one
local dir = minetest.facedir_to_right_dir(filtnode.param2)
local frompos = vector.subtract(filtpos, dir)