Attempted fix
This commit is contained in:
parent
5a7d08e75f
commit
670787bee0
|
@ -324,6 +324,9 @@ function factions.member_remove(name,object)
|
|||
factions.data.objects[id].factions[name] ~= nil then
|
||||
factions.data.objects[id].factions[name] = nil
|
||||
factions.dynamic_data.membertable[name][id] = nil
|
||||
if factions.data.objects[id].factions[name].owner == object:get_player_name() then
|
||||
factions.delete_faction(name)
|
||||
end
|
||||
factions.save()
|
||||
return true
|
||||
end
|
||||
|
@ -334,10 +337,6 @@ function factions.member_remove(name,object)
|
|||
factions.save()
|
||||
return true
|
||||
end
|
||||
if factions.data.objects[id].factions[name].owner == object:get_player_name() then
|
||||
factions.delete_faction(name)
|
||||
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user