forked from mtcontrib/factions
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 then
|
||||||
factions.data.objects[id].factions[name] = nil
|
factions.data.objects[id].factions[name] = nil
|
||||||
factions.dynamic_data.membertable[name][id] = 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()
|
factions.save()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -334,10 +337,6 @@ function factions.member_remove(name,object)
|
|||||||
factions.save()
|
factions.save()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if factions.data.objects[id].factions[name].owner == object:get_player_name() then
|
|
||||||
factions.delete_faction(name)
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user