Immersive Railroading

Immersive Railroading

3M Downloads

Fix infinite loop in recursive move

cam72cam opened this issue ยท 3 comments

commented

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
commented

hey, credit me ;P

commented

Sorry about that, did not know you had a github account

commented

Netcode rewrite fixed it