From 121d0146723876f383c786b3f15bdd0d22c2275b Mon Sep 17 00:00:00 2001 From: Christian Mesh Date: Sun, 10 Sep 2017 13:18:38 -0400 Subject: [PATCH] Fix client infinite loop (actually fix it this time) --- .../entity/EntityCoupleableRollingStock.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/cam72cam/immersiverailroading/entity/EntityCoupleableRollingStock.java b/src/main/java/cam72cam/immersiverailroading/entity/EntityCoupleableRollingStock.java index 15f13dd75..2c782be49 100644 --- a/src/main/java/cam72cam/immersiverailroading/entity/EntityCoupleableRollingStock.java +++ b/src/main/java/cam72cam/immersiverailroading/entity/EntityCoupleableRollingStock.java @@ -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; }