Skip to content

Commit

Permalink
Fix client infinite loop (actually fix it this time)
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Sep 10, 2017
1 parent 2c4520e commit 121d014
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private void recursiveMove(EntityCoupleableRollingStock prev, int depth) {
ChunkManager.flagEntityPos(this);

if (depth > Config.maxTrainLength) {
this.decouple(prev);
ImmersiveRailroading.logger.warn("TRAIN TOO LONG!");
return;
}
Expand Down

0 comments on commit 121d014

Please sign in to comment.