This commit is contained in:
Layla 2020-09-05 16:34:38 -04:00
parent 7dc40122b4
commit 8dc142b907

View File

@ -101,10 +101,16 @@ func (m *Match) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB
for _, precense := range presences {
logger.Info("Starting join logic...")
// Add presence to map
mState.presences[precense.GetUserId()] = precense
logger.Info("Added precense to list")
player, loadPlayerErr := entities.LoadPlayer(ctx, nk, precense)
logger.Info("Ran loadplayer method!")
if loadPlayerErr != nil {
logger.Error(loadPlayerErr.Error())
player.X = 16