Error: "__[modname]__\control.lua:18:'then' expected near '='."
And my code is, on the 18th line, with before & after.
Code: Select all
if game.peacefulmode = true then
game.showmessagedialog{text={"Peaceful mode enabled, have fun with infinite resources!"}}