Support for detection of pipeworks fake players by other mods (item drop, etc.)

This commit is contained in:
Novatux 2014-06-08 16:04:36 +02:00
parent 0444d738d7
commit 8b0c56ad08
2 changed files with 2 additions and 0 deletions

View 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),

View 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),