From: Novatux Date: Sun, 8 Jun 2014 14:04:36 +0000 (+0200) Subject: Support for detection of pipeworks fake players by other mods (item drop, etc.) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=8b0c56ad0826874107dbc83be8fc156fe4703b6e;p=zefram%2Fminetest%2Fpipeworks.git Support for detection of pipeworks fake players by other mods (item drop, etc.) --- 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),