Fix ghost rail crashing when landing on a ghost rail then running onto a mundane rail

This commit is contained in:
Vincent Lee committed 2020-03-12 20:08:48 -05:00
1 parent dca245bfac
commit ed1005b57b
1 file changed
+3 -1
@@ -115,7 +115,9 @@ public class BlockGhostRail extends AbstractRailBlock {
AbstractMinecartEntity c = iter.next();
BlockPos entPos = new BlockPos(c);
if (!c.isAlive() || !c.isAddedToWorld() || !c.world.isBlockLoaded(entPos)) {
if (!c.isAlive() || !c.isAddedToWorld() || !c.world.isBlockLoaded(entPos)
|| c.getPersistentData().getInt(TAG_FLOAT_TICKS) <= 0) {
c.noClip = false;
iter.remove();
continue;
}