diff options
Diffstat (limited to 'Gamestates/Multiplayer')
-rw-r--r-- | Gamestates/Multiplayer/Local.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Gamestates/Multiplayer/Local.lua b/Gamestates/Multiplayer/Local.lua index 7158866..c867464 100644 --- a/Gamestates/Multiplayer/Local.lua +++ b/Gamestates/Multiplayer/Local.lua @@ -99,7 +99,11 @@ function Local:update(dt) Gui.Label{text = "Host", size = {Utils.percentCoordinates(10, 10)}} Gui.Input{info = Local.server_host, size = {Utils.percentCoordinates(50, 10)}} if Gui.Button{text = "Connect", size = {Utils.percentCoordinates(60, 10)}} then - connect = true + if string.find(Local.server_host.text, ":") then + connect = true + else + Gui.Label{text = "Please enter port"} + end end -- End |