SpoutDev/Vanilla — pull request #110 by bergerkiller (2012-03-27 18:43:47+00:00)
Title: Improved minecart and track logic some more

Signed-off-by: berger killer

Fixed a NPE and track logic now properly connects at all time. Instead of performing a single update on all neighbouring rails, it will instead check all neighbours for connections. If it has less than 2 connections, it can connect and is added as neighbour. Finally the main rails looks at all (valid) neighbours and decides a valid rails state. During this, it also forces all 'connected' rails to connect to him, which the neighbours themselves resolve.