You can fix the error on startup by manually changing it but when in game it also produces errors with other things (inventory access for example)
From FFF #293:
"Another problem is in the naming of some 'defines' (constant values exposed for Lua scripting). If you want to access a characters main inventory, the value was called inventory.player_main. This makes it sound like it gives the main inventory of the player, but no, it gives the main inventory of the character. If you are in sandbox mode, using inventory.player_main will not give the correct inventory, you will need to use inventory.god_main. "
Seems like they changed how inventory is addressed.