mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
Add is_player to fakePlayer. Prevents grabAndFire-related crashes
This commit is contained in:
parent
ea94718a9a
commit
1a396c707c
@ -170,7 +170,8 @@ 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))
|
||||
get_wielded_item = delay(ItemStack(nil)),
|
||||
is_player = delay(true)
|
||||
} -- TODO: use a mechanism as the wielder one
|
||||
local dir = pipeworks.facedir_to_right_dir(filtnode.param2)
|
||||
local frompos = vector.subtract(filtpos, dir)
|
||||
|
Loading…
Reference in New Issue
Block a user