Microoptimizations after code review

This commit is contained in:
Daniel committed 2021-07-12 22:05:54 +02:00
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