CRASHFIX: players touching enemies' rays before the start made the game crash

This commit is contained in:
Zughy 2023-07-28 22:40:10 +02:00
parent 299ea685b9
commit 75246fdb58

View File

@ -44,6 +44,8 @@ minetest.register_globalstep(function(dtime)
local p_nodename = get_node(player:get_pos()).name
local arena = get_arena_by_player(pl_name)
if arena.in_loading then return end
if p_nodename == "block_league:rays_blue" or p_nodename == "block_league:rays_orange" then
local p_data = arena.players[pl_name]
local p_team = p_data.teamID