Nexela / PickerExtended

MIT License
12 stars 16 forks source link

__PickerExtended__/scripts/reviver.lua:47: attempt to index local 'stack' (a nil value) #114

Open remiteeple opened 2 years ago

remiteeple commented 2 years ago

Describe the Bug

As far as I can tell, the bug only outputs the exception into the chat. Looks to me that the local var stack isn't being check if it exists before attempting to call the method valid_for_read on it on line 47 of https://github.com/Nexela/PickerExtended/blob/master/scripts/reviver.lua

This is likely due to the Space Explorationmod's implementation of a respawn location choice after death.

To Reproduce

  1. Ensure that Space Exploration and Picker Extended are enabled.
  2. Create a new save or use an existing mod compatible save.
  3. Place a blueprint.
  4. Die.
  5. Hover your mouse over the blueprint.
  6. Successful reproduction of the error! __PickerExtended__/scripts/reviver.lua:47: attempt to index local 'stack' (a nil value) will be displayed in chat.

Log file

factorio-current.log