next = pos.add(BlockFace.DOWN);
} else {
return null;
}
// Check for movement from sloped to vertical, and adjust the Y-position based on that
RailLogic lastLogic = member.getRailTracker().getLastLogic();
if (lastLogic.isSloped()) {
if (lastLogic.getDirection() == member.getDirection().getOppositeFace()) {
member.getEntity().loc.setY((double) next.y + 0.95);
}
}
return next;
}