Hi, I was going to try your mod out, but it crashes when building terrain with creative wand. The fix is rather easy, so there you go. This is my first pull request on a project that isn't mine, so please tell me if I'm doing something wrong. Cheers.
Btw this was the error if you are interested:
Error while running event creative-mode-fix::on_player_selected_area (ID 49) Error while running event cargo-ships::on_player_built_tile (ID 45) __cargo-ships__/control.lua:74: attempt to index field 'item' (a nil value) stack traceback: __creative-mode-fix__/scripts/util.lua:160: in function 'raise_event' __creative-mode-fix__/scripts/magic-wand-creator.lua:413: in function 'create_tiles_or_resources_in_pattern' __creative-mode-fix__/scripts/magic-wand-creator.lua:471: in function 'on_player_selected_area' __creative-mode-fix__/scripts/events.lua:433: in function '?' __creative-mode-fix__/scripts/events.lua:1113: in function <__creative-mode-fix__/scripts/events.lua:1048>
Hi, I was going to try your mod out, but it crashes when building terrain with creative wand. The fix is rather easy, so there you go. This is my first pull request on a project that isn't mine, so please tell me if I'm doing something wrong. Cheers.
Btw this was the error if you are interested:
Error while running event creative-mode-fix::on_player_selected_area (ID 49) Error while running event cargo-ships::on_player_built_tile (ID 45) __cargo-ships__/control.lua:74: attempt to index field 'item' (a nil value) stack traceback: __creative-mode-fix__/scripts/util.lua:160: in function 'raise_event' __creative-mode-fix__/scripts/magic-wand-creator.lua:413: in function 'create_tiles_or_resources_in_pattern' __creative-mode-fix__/scripts/magic-wand-creator.lua:471: in function 'on_player_selected_area' __creative-mode-fix__/scripts/events.lua:433: in function '?' __creative-mode-fix__/scripts/events.lua:1113: in function <__creative-mode-fix__/scripts/events.lua:1048>