mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-29 18:53:49 +01:00
wrap fixup code in do-block
variable save_needed is not used for anything else
This commit is contained in:
parent
e21bd17ace
commit
a87e59afee
2
init.lua
2
init.lua
@ -546,6 +546,7 @@ minetest.register_chatcommand("factions", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Fix factions
|
-- Fix factions
|
||||||
|
do
|
||||||
local save_needed = false
|
local save_needed = false
|
||||||
for _, fact in pairs(facts) do
|
for _, fact in pairs(facts) do
|
||||||
if not fact.members then
|
if not fact.members then
|
||||||
@ -560,5 +561,6 @@ end
|
|||||||
if save_needed then
|
if save_needed then
|
||||||
save_factions()
|
save_factions()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
print("[playerfactions] loaded")
|
print("[playerfactions] loaded")
|
||||||
|
Loading…
Reference in New Issue
Block a user