Skip to content

Commit

Permalink
Fix crash when cloning a loader (its still broken, but at least it do…
Browse files Browse the repository at this point in the history
…es not crash)
  • Loading branch information
Quezler committed Dec 21, 2023
1 parent fcadc85 commit 4a7d393
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mods/filter-helper-helper/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ script.on_event(defines.events.on_player_main_inventory_changed, function(event)
create_build_effect_smoke = false,
}

if not clone then
game.print('filter helper helper: cloning '.. opened.name ..' failed somehow.')
return
end

clone.destructible = false
clone.active = false
player.opened = clone
Expand Down
2 changes: 1 addition & 1 deletion mods/filter-helper-helper/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "filter-helper-helper",
"title": "Filter Helper - helper",
"description": "A quality of life helper for the quality of life filter helper mod.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down

0 comments on commit 4a7d393

Please sign in to comment.