mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-28 08:37:28 +01:00
added is_fake_player entry to the fake player table passed on to allow_metadata_* functions
This commit is contained in:
parent
af2c3778fe
commit
fca10f613d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user