Version update + cleaning
parent
d1f6e3d1a5
commit
dc1db46dcb
10
api.lua
10
api.lua
|
@ -317,7 +317,7 @@ function arena_lib.rename_arena(sender, mod, arena_name, new_name, in_editor)
|
|||
arena.name = new_name
|
||||
|
||||
-- aggiorno il cartello, se esiste
|
||||
if arena.sign.x then
|
||||
if next(arena.sign) then
|
||||
arena_lib.update_sign(arena)
|
||||
end
|
||||
|
||||
|
@ -408,7 +408,7 @@ function arena_lib.change_players_amount(sender, mod, arena_name, min_players, m
|
|||
end
|
||||
|
||||
-- aggiorno il cartello, se esiste
|
||||
if arena.sign.x then
|
||||
if next(arena.sign) then
|
||||
arena_lib.update_sign(arena)
|
||||
end
|
||||
|
||||
|
@ -471,7 +471,7 @@ function arena_lib.toggle_teams_per_arena(sender, mod, arena_name, enable, in_ed
|
|||
arena_lib.set_spawner(sender, mod, arena_name, nil, "deleteall", nil, in_editor)
|
||||
|
||||
-- aggiorno il cartello, se esiste
|
||||
if arena.sign.x then
|
||||
if next(arena.sign) then
|
||||
arena_lib.update_sign(arena)
|
||||
end
|
||||
|
||||
|
@ -773,7 +773,7 @@ function arena_lib.enable_arena(sender, mod, arena_name, in_editor)
|
|||
return end
|
||||
|
||||
-- cartello
|
||||
if not arena.sign.x then
|
||||
if not next(arena.sign) then
|
||||
minetest.chat_send_player(sender, minetest.colorize("#e6482e", S("[!] Sign not set, the arena can't be enabled!")))
|
||||
arena.enabled = false
|
||||
return end
|
||||
|
@ -1751,7 +1751,7 @@ function init_storage(mod, mod_ref)
|
|||
|
||||
--signs_lib ha bisogno di un attimo per caricare sennò tira errore
|
||||
minetest.after(0.01, function()
|
||||
if arena.sign.x then -- se non è ancora stato registrato nessun cartello per l'arena, evito il crash
|
||||
if next(arena.sign) then -- se non è ancora stato registrato nessun cartello per l'arena, evito il crash
|
||||
arena_lib.update_sign(arena)
|
||||
end
|
||||
end)
|
||||
|
|
|
@ -79,7 +79,7 @@ function arena_lib.print_arena_info(sender, mod, arena_name)
|
|||
|
||||
-- calcolo cartello
|
||||
local sign_pos
|
||||
if arena.sign.x ~= nil then
|
||||
if next(arena.sign) then
|
||||
sign_pos = minetest.pos_to_string(arena.sign)
|
||||
else
|
||||
sign_pos = "---"
|
||||
|
|
2
init.lua
2
init.lua
|
@ -1,4 +1,4 @@
|
|||
local version = "3.6.0-dev"
|
||||
local version = "3.6.0"
|
||||
|
||||
dofile(minetest.get_modpath("arena_lib") .. "/api.lua")
|
||||
dofile(minetest.get_modpath("arena_lib") .. "/callbacks.lua")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# version 3.6.0-dev
|
||||
# version 3.6.0
|
||||
# author(s): Zughy
|
||||
# reviewer(s):
|
||||
# textdomain: arena_lib
|
||||
|
@ -19,10 +19,10 @@ Teams successfully enabled for the arena @1=Squadre abilitate con successo nell'
|
|||
Teams successfully disabled for the arena @1=Squadre disabilitate con successo nell'arena @1
|
||||
[!] This team doesn't exist!=[!] Questo team non esiste!
|
||||
[!] No spawner with that ID to overwrite!=[!] Nessuno spawner con quell'ID da sovrascrivere!
|
||||
[!] No team must be specified for this function!=[!] Non va specificato nessun team per questa funzione!
|
||||
[!] No team must be specified for this function!=[!] Non va specificata nessuna squadra per questa funzione!
|
||||
Spawn point #@1 successfully overwritten=Punto di spawn #@1 sovrascritto con successo
|
||||
[!] No spawner with that ID to delete!=[!] Nessuno spawner con quell'ID da cancellare!
|
||||
All the spawn points belonging to team @1 have been removed=Tutti i punti di spawn appartenenti al team @1 sono stati rimossi
|
||||
All the spawn points belonging to team @1 have been removed=Tutti i punti di spawn appartenenti alla squadra @1 sono stati rimossi
|
||||
All the spawn points have been removed=Tutti i punti di spawn sono stati rimossi
|
||||
Spawn point #@1 successfully deleted=Punto di spawn #@1 cancellato con successo
|
||||
[!] Unknown parameter!=[!] Parametro non riconosciuto!
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# version 3.6.0-dev
|
||||
# version 3.6.0
|
||||
# author(s):
|
||||
# reviewer(s):
|
||||
# textdomain: arena_lib
|
||||
|
|
Loading…
Reference in New Issue