Turns out System.lanes() is completely broken. As soon as it encounters the last ring in a lane, rings.get(current_ring.next_ring) will throw an exception. This PR works around that.
Alternatively, this could also be fixed by altering EntitySet.get()'s behaviour to include default values, which it looks like was the expected behaviour here
Turns out System.lanes() is completely broken. As soon as it encounters the last ring in a lane,
rings.get(current_ring.next_ring)
will throw an exception. This PR works around that.Alternatively, this could also be fixed by altering EntitySet.get()'s behaviour to include default values, which it looks like was the expected behaviour here