From 2c03331fa1d757676dc8770fc4fdaee39d95845b Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Tue, 27 Nov 2018 17:44:11 -0500 Subject: [PATCH] Update tron.lua --- tron.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tron.lua b/tron.lua index 235953b..c563722 100644 --- a/tron.lua +++ b/tron.lua @@ -982,8 +982,8 @@ local networking = function() return gameID elseif msg.gameID == gamename then - if type(msg.player) == "table" then - if not isHost then + if not isHost then + if type(msg.player) == "table" then player[nou].name = msg.name or player[nou].name player = msg.player if msg.trail then @@ -993,12 +993,12 @@ local networking = function() end deadGuys = msg.deadGuys os.queueEvent("move_tick") - elseif type(msg.keysDown) == "table" then - netKeysDown = msg.keysDown - netLastDirectionPressed = msg.lastDir - player[nou].putTrail = msg.putTrail - player[nou].name = msg.name or player[nou].name end + elseif type(msg.keysDown) == "table" then + netKeysDown = msg.keysDown + netLastDirectionPressed = msg.lastDir + player[nou].putTrail = msg.putTrail + player[nou].name = msg.name or player[nou].name end end