[1.1.57] Belt ghosts can't have their belt_neighbours checked
Posted: Mon Apr 18, 2022 10:32 pm
I'm honestly not sure if this used to be possible and has regressed, or was just never possible in the first place (in which case this should be moved to Modding Interface Requests), but my mod just crashed today and I had to do some debugging!
Steps to reproduce:
- Build a belt
- Place a belt ghost after it
- Mouse over the "real" belt and use the command:
The console prints 1, showing that the ghost belt is considered a belt_neighbour of the real belt.
- Mouse over the ghost belt and use the command:
I expect the console to print 1 since the "real" belt is an input to the ghost belt, but instead the game returns an error "Entity is not transport-belt-connectable."
Basically this is an inconsistency. Either the ghost belt shouldn't count as a belt_neighbour because it's not a "real" belt, or the ghost belt should have access to its belt_neighbours.
Steps to reproduce:
- Build a belt
- Place a belt ghost after it
- Mouse over the "real" belt and use the command:
Code: Select all
/c game.print(#game.player.selected.belt_neighbours.outputs)
- Mouse over the ghost belt and use the command:
Code: Select all
/c game.print(#game.player.selected.belt_neighbours.inputs)
Basically this is an inconsistency. Either the ghost belt shouldn't count as a belt_neighbour because it's not a "real" belt, or the ghost belt should have access to its belt_neighbours.