From 8b0c56ad0826874107dbc83be8fc156fe4703b6e Mon Sep 17 00:00:00 2001 From: Novatux Date: Sun, 8 Jun 2014 16:04:36 +0200 Subject: [PATCH] Support for detection of pipeworks fake players by other mods (item drop, etc.) --- deployer.lua | 1 + node_breaker.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/deployer.lua b/deployer.lua index d0ef9f6..360a0c5 100644 --- a/deployer.lua +++ b/deployer.lua @@ -72,6 +72,7 @@ local function deployer_on(pos, node) get_player_control_bits = delay(0), get_player_name = delay(meta:get_string("owner")), is_player = delay(true), + is_fake_player = true, set_inventory_formspec = delay(), getpos = delay({x = pos.x, y = pos.y - 1.5, z = pos.z}), -- Player height get_hp = delay(20), diff --git a/node_breaker.lua b/node_breaker.lua index b9267f4..b6eb8ac 100644 --- a/node_breaker.lua +++ b/node_breaker.lua @@ -133,6 +133,7 @@ local function break_node (pos, facedir) get_player_control_bits = delay(0), get_player_name = delay(meta:get_string("owner")), is_player = delay(true), + is_fake_player = true, set_inventory_formspec = delay(), getpos = delay({x = pos.x, y = pos.y - 1.5, z = pos.z}), -- Player height get_hp = delay(20), -- 2.30.2