mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix ghost rail crashing when landing on a ghost rail then running onto a mundane rail
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user