Support for detection of pipeworks fake players by other mods (item drop, etc.)
authorNovatux <nathanael.courant@laposte.net>
Sun, 8 Jun 2014 14:04:36 +0000 (16:04 +0200)
committerNovatux <nathanael.courant@laposte.net>
Sun, 8 Jun 2014 14:04:36 +0000 (16:04 +0200)
deployer.lua
node_breaker.lua

index d0ef9f6bad872022acc97bb8b4d367af72256ea7..360a0c54b63168836fac2597cddc417e5ab53c13 100644 (file)
@@ -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),
index b9267f4bebb829296bae9e7ab3986f26cdc290cb..b6eb8acbe8c7c0d6adae215058ad1868a7d09269 100644 (file)
@@ -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),