Skip to content

Commit

Permalink
fix missing require in thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Oct 16, 2024
1 parent 2762cc4 commit 9808406
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions compat/game21/server/packet_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local packet_types = require("compat.game21.server.packet_types")
local version = require("server.version")
local sodium = require("extlibs.luasodium")
local game = require("server.game")
require("love.timer")

local packet_handler = {}
local server_pk, server_sk = sodium.crypto_kx_keypair()
Expand Down
1 change: 1 addition & 0 deletions extlibs/sqlite/defs.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local ffi = require("ffi")
local bit = require("bit")
require("love.system")
local M = {}

--- Load clib
Expand Down
1 change: 1 addition & 0 deletions server/game_thread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local replay = require("game_handler.replay")
local game_handler = require("game_handler")
local config = require("config")
local threadify = require("threadify")
require("love.timer")

-- avoid local redefinition
do
Expand Down
1 change: 1 addition & 0 deletions server/web_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ local log = require("log")("server.web_api")
local zip = require("extlibs.love-zip")
local threadify = require("threadify")
local game_handler = require("game_handler")
require("love.timer")

local promise = game_handler.init()
while not promise.executed do
Expand Down
1 change: 1 addition & 0 deletions ui/overlay/packs/download_thread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local https = require("https")
local threadify = require("threadify")
local assets = threadify.require("game_handler.assets")
local url = require("socket.url")
require("love.timer")

local server_http_url, server_https_url
local tmp_folder = "download_cache/"
Expand Down

0 comments on commit 9808406

Please sign in to comment.