I've tried updating the code and I am left with this. I've trimmed it down to show just the basics of what I am having issues with.
Code: Select all
if remote.interfaces.freeplay then
script.on_init(function()
game.player.character.insert{name="basic-transport-belt", count = 128}
end)
end
I get an error trying to generate "Map doesn't contain 1 player, this function can't be used". I know local_player is only meant for console commands and players[1] is for multiplayer, what am I doing wrong?