fix crash
This commit is contained in:
parent
e7266c2f45
commit
e3576082a2
|
@ -39,8 +39,8 @@ arena_lib.on_load("the_bridge", function(arena)
|
|||
arena_lib.force_arena_ending("the_bridge", arena)
|
||||
minetest.log("warning","The Bridge is not supposed to run without any teams!")
|
||||
end --this game is not supposed to be used without teams!
|
||||
arena.team_id_red = get_team_id_by_name(arena_lib.mods["the_bridge"],"red")
|
||||
arena.team_id_blue = get_team_id_by_name(arena_lib.mods["the_bridge"],"blue")
|
||||
arena.team_id_red = get_team_id_by_name(arena_lib.mods["the_bridge"],S("red"))
|
||||
arena.team_id_blue = get_team_id_by_name(arena_lib.mods["the_bridge"],S("blue"))
|
||||
create_huds(arena)
|
||||
after_goal(arena) --gives all players their items and teleports them to spawners
|
||||
|
||||
|
@ -48,6 +48,8 @@ arena_lib.on_load("the_bridge", function(arena)
|
|||
end)
|
||||
|
||||
arena_lib.on_enable("the_bridge", function(arena, p_name)
|
||||
arena.team_id_red = get_team_id_by_name(arena_lib.mods["the_bridge"],"red")
|
||||
arena.team_id_blue = get_team_id_by_name(arena_lib.mods["the_bridge"],"blue")
|
||||
savemap(arena.the_bridge_area_pos_1,arena.the_bridge_area_pos_2,arena)
|
||||
return true
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue