ClaudeMetz / FactoryPlanner

A mod for Factorio. Allows you to plan out your production in detail.
https://mods.factorio.com/mod/factoryplanner
MIT License
99 stars 47 forks source link

Right click ingredient and put into cursor crash #426

Closed Seawolf159 closed 2 days ago

Seawolf159 commented 4 days ago

Problem Description

Right click ingredient and put into cursor crash:

The mod Factory Planner (2.0.14) caused a non-recoverable error. Please report this error to the mod author.

Error while running event factoryplanner::on_gui_click (ID 1) factoryplanner/util/cursor.lua:146: attempt to perform arithmetic on local 'amount' (a nil value) stack traceback: factoryplanner/util/cursor.lua:146: in function 'add_to_item_combinator' factoryplanner/util/cursor.lua:253: in function 'handle_item_click' factoryplanner/ui/main/production_handler.lua:234: in function 'handle_item_click' factoryplanner/ui/main/production_handler.lua:343: in function 'handler' factory planner/ui/base/modal_dialog.lua:354: in function 'handler' factoryplanner/ui/event_handler.lua:173: in function <factoryplanner/ui/event_handler.lua:121>

factorio-current.log

Reproduction

Right click ingredient and put into cursor crash

ClaudeMetz commented 4 days ago

Thanks for the report. Can you tell me what the setup was that you clicked on? Maybe a screenshot would help.

Seawolf159 commented 2 days ago

image It happens every time without fail.

ClaudeMetz commented 2 days ago

Thanks, fixed for the next release.