mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Microoptimizations after code review
This commit is contained in:
1 parent
a939e11641
commit
f9ef2ebbe1
9 files changed
+27
-30
No files matched your search
@@ -2,7 +2,7 @@ local load_crafting_queue = require("modules/inventory_sync/load_crafting_queue"
|
||||
|
||||
function restore_crafts(event)
|
||||
if event.player_index then
|
||||
local player = game.players[event.player_index]
|
||||
local player = game.get_player(event.player_index)
|
||||
local crafting_queue = global["saved_crafting_queue_"..player.name]
|
||||
|
||||
if crafting_queue == nil then
|
||||
|
||||
Reference in new issue
Block a user