I was playing around with v2.1 and noticed this mod broke.... And I really love this mod!!
Fixing this isn't that hard, so for anyone else who wants to use this for 2.1. This is what I changed to get it running again:
info.json changes:
- Line 9:
Changed: "factorio_version": "2.0"
To: "factorio_version": "2.1"
script/teleporters.lua changes:
- Line 119:
Changed: if player.character then player.character.active = true end
To: if player.character then player.character.disabled_by_script = false end
- Line 123:
Changed: source.active = true
To: source.disabled_by_script = false
- Line 508:
Changed: entity.active = false
To: entity.disabled_by_script = true
- Line 510:
Changed: character.active = false
To: character.disabled_by_script = true