mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Assert optional api results across the scenario modules
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,7 @@ SelectArea:on_selection(function(event)
|
||||
if #chests > 0 then
|
||||
for _, chest in pairs(chests) do
|
||||
tile_count = tile_count + 1
|
||||
if chest.get_inventory(defines.inventory.chest).is_empty() and tile_count <= item_count_total then
|
||||
if assert(chest.get_inventory(defines.inventory.chest)).is_empty() and tile_count <= item_count_total then
|
||||
tiles_to_make[tile_count] = { name = tile_to_apply, position = { chest.position.x, chest.position.y } }
|
||||
chest.destroy()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user