Cerbrus / FactorioMods-TogglePeacefulMode

Factorio mod: Toggle Peaceful Mode
3 stars 2 forks source link

v0.3 - Error when adding to an existing save #7

Closed ssanderlin closed 3 years ago

ssanderlin commented 3 years ago

Adding v0.3 to an existing save results in the following error. Does not occur with a brand new game. No previous version of this mod was installed.

Error while applying migration: Toggle Peaceful Mode: TogglePeacefulMode_0.3.0.lua

Gui element with name tpm-button already present in the parent element. stack traceback: [C]: in function 'add' TogglePeacefulMode/tpm/gui/layout.lua:7: in function 'init' ...lePeacefulMode__/migrations/TogglePeacefulMode_0.3.0.lua:12: in main chunk

Cerbrus commented 3 years ago

Fixed and verified in 0.3.1. Thanks for the bug report!