From c0c82f3677549a72522a4128cfb7fdb0ae1443e0 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Fri, 21 Aug 2020 02:28:31 -0400 Subject: [PATCH] Update position not invalid tile --- server/plugin/control/control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugin/control/control.go b/server/plugin/control/control.go index 216b870..69e4030 100644 --- a/server/plugin/control/control.go +++ b/server/plugin/control/control.go @@ -113,7 +113,7 @@ func (m *Match) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB if jsonObj, err := player.GetPosJSON(); err != nil { logger.Error(err.Error()) } else { - if sendErr := dispatcher.BroadcastMessage(OpCodeTileUpdate, jsonObj, []runtime.Presence{precense}, player.Presence, true); sendErr != nil { + if sendErr := dispatcher.BroadcastMessage(OpCodeUpdatePosition, jsonObj, []runtime.Presence{precense}, player.Presence, true); sendErr != nil { logger.Error(sendErr.Error()) } }