summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-08-26 06:23:34 +0100
committerubq323 <ubq323@ubq323.website>2023-08-26 06:23:34 +0100
commit3102095c9ff4939dfc0438339c7208ee7b2e2957 (patch)
tree36efe5d63372136fbc6af791d0dba91f05f2eb34 /server
parentabc57f1c5a4fcf90acc650989f3dbf52b7609e9a (diff)
print usernames better, and respond to remote players usernames
Diffstat (limited to 'server')
-rw-r--r--server/server.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/server.lua b/server/server.lua
index a6fd42b..8a725af 100644
--- a/server/server.lua
+++ b/server/server.lua
@@ -19,8 +19,6 @@ print(host:get_socket_address())
-- sequential list of all players
local playerlist = {}
--- this is maybe suboptimal
--- but it is simplest for now
local function player_by_id(id)
for i,pl in ipairs(playerlist) do
if pl.id == id then return pl, i end