[0.12.2] Tight-spot lua bug and fix
Posted: Sat Aug 01, 2015 6:09 am
It seems that 0.12 broke the tight-spot scenario. Whenever an item is inserted into the smart chest, the lua script crashes to menu, with an error in line 272 of data/scenario-pack/campaigns/tight-spot/lualib/tightspot.lua. The line is
To fix the error, change that line to
Code: Select all
game.create_entity{name = "flying-text", position = resultchest.position, text = "+" .. addition, color = {g = 1}}
Code: Select all
game.player.surface.create_entity{name = "flying-text", position = resultchest.position, text = "+" .. addition, color = {g = 1}}