summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-06-08 16:04:36 +0200
committerNovatux <nathanael.courant@laposte.net>2014-06-08 16:04:36 +0200
commit8b0c56ad0826874107dbc83be8fc156fe4703b6e (patch)
tree7ac8cae9b1d60f2ec495615fcd631c6b02d55b4b
parent0444d738d73c84b3f78d121f625b663fdf26dc20 (diff)
downloadpipeworks-8b0c56ad0826874107dbc83be8fc156fe4703b6e.tar
pipeworks-8b0c56ad0826874107dbc83be8fc156fe4703b6e.tar.gz
pipeworks-8b0c56ad0826874107dbc83be8fc156fe4703b6e.tar.bz2
pipeworks-8b0c56ad0826874107dbc83be8fc156fe4703b6e.tar.xz
pipeworks-8b0c56ad0826874107dbc83be8fc156fe4703b6e.zip
Support for detection of pipeworks fake players by other mods (item drop, etc.)
-rw-r--r--deployer.lua1
-rw-r--r--node_breaker.lua1
2 files changed, 2 insertions, 0 deletions
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),