Remove: name from is_player_connected param
This commit is contained in:
parent
a1cebc3a24
commit
6bfd210d2c
@ -232,7 +232,7 @@ function factions.add_player(name, player, rank)
|
|||||||
faction.invited_players[player] = nil
|
faction.invited_players[player] = nil
|
||||||
local pdata = minetest.get_player_by_name(player)
|
local pdata = minetest.get_player_by_name(player)
|
||||||
if pdata then
|
if pdata then
|
||||||
local ipc = pdata:is_player_connected(player)
|
local ipc = pdata:is_player_connected()
|
||||||
if ipc then
|
if ipc then
|
||||||
createHudFactionName(pdata, name)
|
createHudFactionName(pdata, name)
|
||||||
createHudPower(pdata, faction)
|
createHudPower(pdata, faction)
|
||||||
@ -283,7 +283,7 @@ function factions.remove_player(name, player)
|
|||||||
|
|
||||||
local pdata = minetest.get_player_by_name(player)
|
local pdata = minetest.get_player_by_name(player)
|
||||||
if pdata then
|
if pdata then
|
||||||
local ipc = pdata:is_player_connected(player)
|
local ipc = pdata:is_player_connected()
|
||||||
|
|
||||||
if ipc then
|
if ipc then
|
||||||
removeHud(pdata,"factionName")
|
removeHud(pdata,"factionName")
|
||||||
|
Loading…
Reference in New Issue
Block a user