Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 3d0412c

Browse files
committed
refactor(server): check if people deleted their sql file like chumps
because it gets real annoying having people complain about errors they caused.
1 parent 340727f commit 3d0412c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/main.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ local function isAuthorised(playerId, door, lockpick)
233233
return authorised
234234
end
235235

236-
MySQL.query(LoadResourceFile(cache.resource, 'sql/ox_doorlock.sql'))
236+
local sql = LoadResourceFile(cache.resource, 'sql/ox_doorlock.sql')
237+
238+
if sql then MySQL.query(sql) end
237239

238240
MySQL.ready(function()
239241
while Config.DoorList do Wait(100) end

0 commit comments

Comments
 (0)