Fix infinite loop in recursive move
cam72cam opened this issue ยท 3 comments
Reported by @MrBurd
[17:58:33] [main/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Ticking entity
(...)
Caused by: java.lang.StackOverflowError
at cam72cam.immersiverailroading.entity.EntityMoveableRollingStock.railFromPosition(EntityMoveableRollingStock.java:364) ~[EntityMoveableRollingStock.class:?]
at cam72cam.immersiverailroading.entity.EntityMoveableRollingStock.nextPosition(EntityMoveableRollingStock.java:390) ~[EntityMoveableRollingStock.class:?]
at cam72cam.immersiverailroading.entity.EntityMoveableRollingStock.moveRollingStock(EntityMoveableRollingStock.java:298) ~[EntityMoveableRollingStock.class:?]
at cam72cam.immersiverailroading.entity.EntityCoupleableRollingStock.recursiveMove(EntityCoupleableRollingStock.java:265) ~[EntityCoupleableRollingStock.class:?]
there's a summary